Add CI: build/test, CodeQL and zizmor workflows #129
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
| # Build the project and run the test suite with Maven. | |
| name: Build | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: '17' | |
| cache: maven | |
| # 'verify' runs the unit tests (surefire) before packaging. Tests run by | |
| # default now; they can be skipped locally with -DskipTests. | |
| - name: Build and test with Maven | |
| run: mvn -B verify --file pom.xml |