Update GitHub Actions #98
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, pull_request] | |
| jobs: | |
| linux: | |
| runs-on: ubuntu-latest | |
| name: Java ${{ matrix.java }} | |
| strategy: | |
| matrix: | |
| java: [8, 11] | |
| env: | |
| REPO_SLUG: ${{ github.repository }} | |
| BRANCH: ${{ github.head_ref }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up JDK ${{ matrix.java }} | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: ${{ matrix.java }} | |
| distribution: 'temurin' | |
| - name: Cache Maven dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.m2 | |
| key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: ${{ runner.os }}-m2 | |
| - name: Execute tests | |
| run: mvn verify | |
| - name: check license header is present in all files | |
| run: mvn license:check | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v5 |