Skip to content

Tests

Tests #13

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / Tests

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 33, Col: 14): Unexpected value '' .github/workflows/test.yml (Line: 35, Col: 9): Unexpected value 'path'
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"