ci: separate checks for pull requests from pushes to the main branch … #24
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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| test: | |
| name: "maven@java17" | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| showcase: | |
| - "block-kit" | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Install JDK | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: 17 | |
| distribution: "adopt" | |
| - name: Run tests | |
| run: | | |
| cd "${{ matrix.showcase }}" | |
| mvn --batch-mode spotless:check | |
| mvn --batch-mode test -Dspotless.apply.skip |