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"