Release v1.5.12 #35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Contract tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| schedule: | |
| - cron: '0 6 * * *' | |
| repository_dispatch: | |
| types: [openapi-updated] | |
| permissions: | |
| contents: read | |
| issues: write | |
| jobs: | |
| contract: | |
| name: validate parser against latest audd-openapi fixtures | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| path: audd-java | |
| - name: Check out audd-openapi | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: AudDMusic/audd-openapi | |
| path: audd-openapi | |
| ref: main | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: '21' | |
| cache: maven | |
| - name: Run contract tests | |
| working-directory: audd-java | |
| env: | |
| AUDD_OPENAPI_FIXTURES: ${{ github.workspace }}/audd-openapi/fixtures | |
| run: mvn -B test -Dtest='*ContractTest' -DfailIfNoTests=false | |
| - name: Open issue on failure (dispatched runs only) | |
| if: failure() && github.event_name == 'repository_dispatch' | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| TRIGGER_SHA: ${{ github.event.client_payload.trigger_sha }} | |
| run: | | |
| gh issue create \ | |
| --title "Contract drift: audd-openapi spec change broke parser" \ | |
| --body "An openapi-updated dispatch (trigger SHA: $TRIGGER_SHA) caused contract tests to fail. Investigate and update parsers." \ | |
| --label "contract-drift" || true |