From bfad3b3d0fc5943cc3b91034ad63e4ea2e549176 Mon Sep 17 00:00:00 2001 From: Emil Lundberg Date: Tue, 3 Sep 2024 14:56:41 +0200 Subject: [PATCH] Add weekly integration test workflow --- .github/workflows/integration-test.yml | 48 ++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/integration-test.yml diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml new file mode 100644 index 000000000..0ebc057db --- /dev/null +++ b/.github/workflows/integration-test.yml @@ -0,0 +1,48 @@ +# This name is shown in the status badge in the README +name: integration-test + +on: + schedule: + # Run once a week to check compatibility with new FIDO MDS blob contents + - cron: '0 0 * * 1' + +jobs: + test: + name: JDK ${{ matrix.java }} ${{ matrix.distribution }} + + runs-on: ubuntu-latest + strategy: + matrix: + java: [17] + distribution: [temurin] + + outputs: + report-java: 17 + report-dist: temurin + + steps: + - name: Check out code + uses: actions/checkout@v3 + + - name: Set up JDK ${{ matrix.java }} + uses: actions/setup-java@v3 + with: + java-version: ${{ matrix.java }} + distribution: ${{ matrix.distribution }} + + - name: Run tests and integration tests + run: ./gradlew check + + - name: Archive HTML test report + if: ${{ always() }} + uses: actions/upload-artifact@v3 + with: + name: test-reports-java${{ matrix.java }}-${{ matrix.distribution }}-html + path: "*/build/reports/**" + + - name: Archive JUnit test report + if: ${{ always() }} + uses: actions/upload-artifact@v3 + with: + name: test-reports-java${{ matrix.java }}-${{ matrix.distribution }}-xml + path: "*/build/test-results/**/*.xml"