From bb0407e489a14194f544efc63a60b00350c4b028 Mon Sep 17 00:00:00 2001 From: Davide Vacca Date: Tue, 2 Jul 2024 16:49:13 +0200 Subject: [PATCH] Update tests after refresh, validate and update release in CI --- .github/workflows/maven.yml | 9 +++++++++ .../java/com/onfido/integration/ReportSchemasTest.java | 1 + 2 files changed, 10 insertions(+) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 3d0a972..1a3a8a1 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -53,9 +53,14 @@ jobs: publish: runs-on: ubuntu-latest needs: integration-tests + environment: delivery if: github.event_name == 'release' steps: - uses: actions/checkout@v4 + with: + token: ${{ secrets.GH_ACTION_ACCESS_TOKEN }} + ref: ${{ github.ref_name }} + repository: ${{ github.repository_owner }}/${{ github.event.repository.name }} - name: Set up Maven Central Repository uses: actions/setup-java@v4 with: @@ -64,6 +69,8 @@ jobs: server-id: ossrh server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD + - name: Validate release + uses: onfido/onfido-actions/release-check@main - name: Install gpg secret key run: | echo "$GPG_KEY" > key.asc @@ -80,3 +87,5 @@ jobs: MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + - name: Update and commit CHANGELOG.md + uses: onfido/onfido-actions/update-changelog@main diff --git a/src/test/java/com/onfido/integration/ReportSchemasTest.java b/src/test/java/com/onfido/integration/ReportSchemasTest.java index 25e258c..68fadc2 100644 --- a/src/test/java/com/onfido/integration/ReportSchemasTest.java +++ b/src/test/java/com/onfido/integration/ReportSchemasTest.java @@ -55,6 +55,7 @@ public void schemaOfDocumentReportIsValid() throws Exception { Assertions.assertEquals(check.getId(), documentReport.getReportShared().getCheckId()); Assertions.assertNotNull(documentReport.getDocumentReport().getBreakdown()); Assertions.assertNotNull(documentReport.getDocumentReport().getProperties()); + Assertions.assertNull(documentReport.getDocumentReport().getProperties().getDocumentSubtype()); } @Test