mirror of
https://github.com/kestra-io/kestra.git
synced 2025-12-19 18:05:41 -05:00
feat(cicd): publish allure report
This commit is contained in:
26
.github/workflows/main.yml
vendored
26
.github/workflows/main.yml
vendored
@@ -36,6 +36,7 @@ jobs:
|
||||
check:
|
||||
env:
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
GOOGLE_SERVICE_ACCOUNT: ${{ secrets.GOOGLE_SERVICE_ACCOUNT }}
|
||||
name: Check & Publish
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
@@ -113,6 +114,31 @@ jobs:
|
||||
export GOOGLE_APPLICATION_CREDENTIALS=$HOME/.gcp-service-account.json
|
||||
./gradlew check jacoco javadoc --no-daemon --priority=normal
|
||||
|
||||
# Allure check
|
||||
- name: Auth to Google Cloud
|
||||
id: auth
|
||||
if: ${{ always() && env.GOOGLE_SERVICE_ACCOUNT != 0 }}
|
||||
uses: 'google-github-actions/auth@v2'
|
||||
with:
|
||||
credentials_json: '${{ secrets.GOOGLE_SERVICE_ACCOUNT }}'
|
||||
|
||||
- uses: rlespinasse/github-slug-action@v4
|
||||
|
||||
- name: Publish allure report
|
||||
uses: andrcuns/allure-publish-action@v2.6.0
|
||||
if: ${{ always() && env.GOOGLE_SERVICE_ACCOUNT != 0 && (github.event.inputs.skip-test == 'false' || github.event.inputs.skip-test == '') }}
|
||||
env:
|
||||
GITHUB_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
JAVA_HOME: /usr/lib/jvm/default-jvm/
|
||||
with:
|
||||
storageType: gcs
|
||||
resultsGlob: "**/build/allure-results"
|
||||
bucket: internal-kestra-host
|
||||
baseUrl: "https://internal.kestra.io"
|
||||
prefix: ${{ format('{0}/{1}/{2}', github.repository, env.GITHUB_HEAD_REF_SLUG != '' && env.GITHUB_HEAD_REF_SLUG || github.ref_name, 'allure/java') }}
|
||||
copyLatest: true
|
||||
ignoreMissingResults: true
|
||||
|
||||
# report test
|
||||
- name: Test Report
|
||||
uses: mikepenz/action-junit-report@v4
|
||||
|
||||
20
build.gradle
20
build.gradle
@@ -234,6 +234,26 @@ subprojects {
|
||||
showPassedStandardStreams false
|
||||
showSkippedStandardStreams true
|
||||
}
|
||||
|
||||
dependencies {
|
||||
testImplementation platform("io.qameta.allure:allure-bom:2.27.0")
|
||||
testImplementation "io.qameta.allure:allure-junit5"
|
||||
}
|
||||
|
||||
configurations {
|
||||
agent {
|
||||
canBeResolved = true
|
||||
canBeConsumed = true
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
agent "org.aspectj:aspectjweaver:1.9.22.1"
|
||||
}
|
||||
|
||||
test {
|
||||
jvmArgs = [ "-javaagent:${configurations.agent.singleFile}" ]
|
||||
}
|
||||
}
|
||||
|
||||
/**********************************************************************************************************************\
|
||||
|
||||
1
jdbc-h2/src/test/resources/allure.properties
Normal file
1
jdbc-h2/src/test/resources/allure.properties
Normal file
@@ -0,0 +1 @@
|
||||
allure.results.directory=build/allure-results
|
||||
1
jdbc-mysql/src/test/resources/allure.properties
Normal file
1
jdbc-mysql/src/test/resources/allure.properties
Normal file
@@ -0,0 +1 @@
|
||||
allure.results.directory=build/allure-results
|
||||
1
jdbc-postgres/src/test/resources/allure.properties
Normal file
1
jdbc-postgres/src/test/resources/allure.properties
Normal file
@@ -0,0 +1 @@
|
||||
allure.results.directory=build/allure-results
|
||||
1
jdbc/src/test/resources/allure.properties
Normal file
1
jdbc/src/test/resources/allure.properties
Normal file
@@ -0,0 +1 @@
|
||||
allure.results.directory=build/allure-results
|
||||
10
jdbc/src/test/resources/logback.xml
Normal file
10
jdbc/src/test/resources/logback.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration debug="false">
|
||||
<include resource="logback/base.xml" />
|
||||
<include resource="logback/text.xml" />
|
||||
|
||||
<root level="WARN">
|
||||
<appender-ref ref="STDOUT" />
|
||||
<appender-ref ref="STDERR" />
|
||||
</root>
|
||||
</configuration>
|
||||
1
processor/src/test/resources/allure.properties
Normal file
1
processor/src/test/resources/allure.properties
Normal file
@@ -0,0 +1 @@
|
||||
allure.results.directory=build/allure-results
|
||||
10
processor/src/test/resources/logback.xml
Normal file
10
processor/src/test/resources/logback.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration debug="false">
|
||||
<include resource="logback/base.xml" />
|
||||
<include resource="logback/text.xml" />
|
||||
|
||||
<root level="WARN">
|
||||
<appender-ref ref="STDOUT" />
|
||||
<appender-ref ref="STDERR" />
|
||||
</root>
|
||||
</configuration>
|
||||
1
repository-memory/src/test/resources/allure.properties
Normal file
1
repository-memory/src/test/resources/allure.properties
Normal file
@@ -0,0 +1 @@
|
||||
allure.results.directory=build/allure-results
|
||||
10
repository-memory/src/test/resources/logback.xml
Normal file
10
repository-memory/src/test/resources/logback.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration debug="false">
|
||||
<include resource="logback/base.xml" />
|
||||
<include resource="logback/text.xml" />
|
||||
|
||||
<root level="WARN">
|
||||
<appender-ref ref="STDOUT" />
|
||||
<appender-ref ref="STDERR" />
|
||||
</root>
|
||||
</configuration>
|
||||
1
runner-memory/src/test/resources/allure.properties
Normal file
1
runner-memory/src/test/resources/allure.properties
Normal file
@@ -0,0 +1 @@
|
||||
allure.results.directory=build/allure-results
|
||||
10
runner-memory/src/test/resources/logback.xml
Normal file
10
runner-memory/src/test/resources/logback.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration debug="false">
|
||||
<include resource="logback/base.xml" />
|
||||
<include resource="logback/text.xml" />
|
||||
|
||||
<root level="WARN">
|
||||
<appender-ref ref="STDOUT" />
|
||||
<appender-ref ref="STDERR" />
|
||||
</root>
|
||||
</configuration>
|
||||
1
script/src/test/resources/allure.properties
Normal file
1
script/src/test/resources/allure.properties
Normal file
@@ -0,0 +1 @@
|
||||
allure.results.directory=build/allure-results
|
||||
1
storage-local/src/test/resources/allure.properties
Normal file
1
storage-local/src/test/resources/allure.properties
Normal file
@@ -0,0 +1 @@
|
||||
allure.results.directory=build/allure-results
|
||||
10
storage-local/src/test/resources/logback.xml
Normal file
10
storage-local/src/test/resources/logback.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration debug="false">
|
||||
<include resource="logback/base.xml" />
|
||||
<include resource="logback/text.xml" />
|
||||
|
||||
<root level="WARN">
|
||||
<appender-ref ref="STDOUT" />
|
||||
<appender-ref ref="STDERR" />
|
||||
</root>
|
||||
</configuration>
|
||||
1
webserver/src/test/resources/allure.properties
Normal file
1
webserver/src/test/resources/allure.properties
Normal file
@@ -0,0 +1 @@
|
||||
allure.results.directory=build/allure-results
|
||||
Reference in New Issue
Block a user