Add rejection handler and fix error response type (#823) #3363
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: | |
| - '*' | |
| tags-ignore: | |
| - '*' | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| # test against JDK 17 | |
| java: [ 17 ] | |
| name: CI with Java ${{ matrix.java }} | |
| steps: | |
| - name: Setup Git | |
| run: | | |
| git config --global user.name "Mantis OSS Maintainers" | |
| git config --global user.email "mantis-oss-dev@googlegroups.com" | |
| - uses: actions/checkout@v4 | |
| - name: Setup jdk | |
| uses: actions/setup-java@v1 | |
| with: | |
| java-version: ${{ matrix.java }} | |
| - name: Gradle Cache | |
| uses: actions/cache@v4 | |
| id: gradle-cache | |
| with: | |
| path: ~/.gradle/caches | |
| key: ${{ runner.os }}-gradle-${{ hashFiles('**/gradle/dependency-locks/*.lockfile') }} | |
| restore-keys: | | |
| - ${{ runner.os }}-gradle- | |
| - name: Gradle Wrapper Cache | |
| uses: actions/cache@v4 | |
| id: gradle-wrapper-cache | |
| with: | |
| path: ~/.gradle/wrapper | |
| key: ${{ runner.os }}-gradlewrapper-${{ hashFiles('gradle/wrapper/*') }} | |
| restore-keys: | | |
| - ${{ runner.os }}-gradlewrapper- | |
| - name: Build with Gradle | |
| run: ./gradlew --info --stacktrace build akkatest --warning-mode=all | |
| env: | |
| CI_NAME: github_actions | |
| CI_BUILD_NUMBER: ${{ github.sha }} | |
| CI_BUILD_URL: 'https://github.com/${{ github.repository }}' | |
| CI_BRANCH: ${{ github.ref }} | |
| COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Upload Test Results | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: Unit Test Results | |
| path: "**/build/test-results/**/*.xml" | |
| event_file: | |
| name: "Event File" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Upload | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Event File | |
| path: ${{ github.event_path }} |