Matrix #84
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: Test All | |
| on: | |
| # still run checks on every PR *before* the merge | |
| pull_request: | |
| # run the workflow once more **after** the PR has been merged | |
| push: | |
| branches: | |
| - main | |
| - development | |
| jobs: | |
| build: | |
| runs-on: macos-latest | |
| timeout-minutes: 120 | |
| steps: | |
| - name: Checkout (default) | |
| if: github.event_name != 'pull_request' | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| submodules: recursive | |
| # For pull_request_target, explicitly fetch the PR head | |
| - name: Checkout PR head (for pull_request) | |
| if: github.event_name == 'pull_request' | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: ${{ github.event.pull_request.head.repo.full_name }} | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| fetch-depth: 0 | |
| submodules: recursive | |
| - uses: actions/setup-java@v3 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' | |
| - uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: 16.2.0 | |
| - name: Run tests | |
| run: ./gradlew allTests || true | |
| - name: Test Report | |
| uses: dorny/test-reporter@v2 | |
| env: | |
| NODE_OPTIONS: --max-old-space-size=8192 | |
| if: success() || failure() | |
| with: | |
| name: Tests | |
| path: '**/build/test-results/**/TEST*.xml' | |
| reporter: java-junit | |
| list-suites: failed | |
| list-tests: failed | |
| use-actions-summary: true | |
| fail-on-error: false |