Fix WebClientResponseException not extracting status_code #16
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: CI | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: temurin | |
| java-version: 21 | |
| cache: maven | |
| - name: Build and test | |
| run: ./mvnw -B verify | |
| - name: Upload coverage to Codecov | |
| if: success() && github.event_name == 'push' | |
| uses: codecov/codecov-action@v6 | |
| with: | |
| files: ./target/site/jacoco/jacoco.xml | |
| flags: unittests | |
| fail_ci_if_error: false # don't break CI if Codecov upload glitches | |
| token: ${{ secrets.CODECOV_TOKEN }} # optional for public repos | |
| - name: Upload test reports on failure | |
| if: failure() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: test-reports | |
| path: | | |
| target/surefire-reports/ | |
| target/failsafe-reports/ | |
| retention-days: 7 |