Skip to content

Commit

Permalink
Update tests after refresh, validate and update release in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dvacca-onfido committed Jul 2, 2024
1 parent 4c7f257 commit bb0407e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bb0407e

Please sign in to comment.