java version #5
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: Checks | |
| on: | |
| push: | |
| branches: ["**"] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| # needs: test | |
| strategy: | |
| matrix: | |
| java-version: [24] # [11, 15, 17] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK ${{ matrix.java-version }} | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: ${{ matrix.java-version }} | |
| distribution: "temurin" | |
| cache: "maven" | |
| - name: Cache Maven packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.m2 | |
| key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: ${{ runner.os }}-m2 | |
| - name: Build with Maven | |
| run: mvn clean compile package -DskipTests | |
| # - name: Run tests | |
| # run: mvn test | |
| # test: | |
| # runs-on: ubuntu-latest | |
| # steps: | |
| # - name: Checkout code | |
| # uses: actions/checkout@v4 | |
| # - name: Set up JDK 17 | |
| # uses: actions/setup-java@v4 | |
| # with: | |
| # java-version: "17" | |
| # distribution: "temurin" | |
| # cache: "maven" | |
| # - name: Cache Maven packages | |
| # uses: actions/cache@v4 | |
| # with: | |
| # path: ~/.m2 | |
| # key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
| # restore-keys: ${{ runner.os }}-m2 | |
| # - name: Compile and run tests | |
| # run: mvn clean compile test |