Tests #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | ||
on: | ||
workflow_run: | ||
workflows: ["Build"] | ||
branches: [githubtest] | ||
types: | ||
- completed | ||
env: | ||
INTEGRATION_TESTS_SECRETS_ENV: ${{ secrets.INTEGRATION_TESTS_SECRETS_ENV }} | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: 'true' | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: 17 | ||
cache: 'gradle' | ||
- name: Prepare env | ||
run: | | ||
echo ${INTEGRATION_TESTS_SECRETS_ENV} | base64 -d > tests/config/secrets.env | ||
- name: Build with Gradle | ||
run: ./gradlew --continue test | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
Check failure on line 33 in .github/workflows/test.yml GitHub Actions / TestsInvalid workflow file
|
||
name: reports | ||
path: '**/TEST-*.xml' | ||
slowTest: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: 'true' | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: 17 | ||
cache: 'gradle' | ||
- name: Prepare env | ||
run: | | ||
echo ${INTEGRATION_TESTS_SECRETS_ENV} | base64 -d > tests/config/secrets.env | ||
- name: Build with Gradle | ||
run: ./gradlew --continue slowTest | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: reports | ||
path: '**/TEST-*.xml' | ||
integrationTest: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: 'true' | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: 17 | ||
cache: 'gradle' | ||
- name: Prepare env | ||
run: | | ||
echo ${INTEGRATION_TESTS_SECRETS_ENV} | base64 -d > tests/config/secrets.env | ||
- name: Build with Gradle | ||
run: ./gradlew --continue integrationTest | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: reports | ||
path: '**/TEST-*.xml' | ||
report: | ||
needs: [test, slowTest, integrationTest] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v4 | ||
- name: Publish Test Report | ||
uses: mikepenz/action-junit-report@v4 | ||
if: success() || failure() # always run even if the previous step fails | ||
with: | ||
report_paths: '**/TEST-*.xml' | ||
#- "*/*/*/*/TEST-*.xml" | ||
#- "*/*/*/*/*/TEST-*.xml" |