save fixes to github actions #165
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: Java CI | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| # We test across all three to ensure backward compatibility | |
| java-version: [ 8, 11, 17 ] | |
| fail-fast: false | |
| name: ${{ matrix.os }} - Java ${{ matrix.java-version }} - Maven | |
| steps: | |
| - name: Checkout ParserNG repo | |
| uses: actions/checkout@v4 # Updated to v4 | |
| - name: Set up JDK ${{ matrix.java-version }} | |
| uses: actions/setup-java@v4 # Updated to v4 | |
| with: | |
| java-version: ${{ matrix.java-version }} | |
| distribution: 'temurin' # 'adopt' is legacy; 'temurin' is the modern standard | |
| cache: maven | |
| # Note: setup-java v4 handles Maven setup automatically. | |
| # You can usually remove stCarolas/setup-maven unless you need a very specific version. | |
| - name: Build ParserNG with Maven | |
| run: mvn "-Dgpg.skip" "--batch-mode" "--update-snapshots" "clean" "install" |