From 98a1adc54274958de45f3f8ee6e9307cc9f0f72c Mon Sep 17 00:00:00 2001 From: "Yu-Shan \"Sami\" Sun" <2300960+yushan87@users.noreply.github.com> Date: Mon, 13 May 2024 11:53:10 -0500 Subject: [PATCH] Changed the branch name in GitHub Actions settings and added JDK 21 --- .github/workflows/maven.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 73671c92a..a743dd892 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -5,9 +5,9 @@ name: RESOLVE (Custom Java CI with Maven) on: push: - branches: [ master ] + branches: [ main ] pull_request: - branches: [ master ] + branches: [ main ] jobs: # This job checks that our Java files have the proper license header. @@ -15,14 +15,14 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up JDK 11 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: '11' - name: Cache Maven packages - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} @@ -35,14 +35,14 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up JDK 11 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: '11' - name: Cache Maven packages - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} @@ -56,17 +56,17 @@ jobs: strategy: matrix: java-dist: [ 'corretto', 'liberica', 'microsoft', 'temurin', 'semeru', 'zulu' ] - java: [ '11', '17' ] + java: [ '11', '17', '21' ] steps: - - uses: actions/checkout@v3 - - name: Set up JDK 11 - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - name: Set up Java JDK + uses: actions/setup-java@v4 with: distribution: ${{ matrix.java-dist }} java-version: ${{ matrix.java }} - name: Cache Maven packages - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} @@ -163,4 +163,4 @@ jobs: # "${GITHUB_WORKSPACE}/bin/runProveTests" # # # Delete temporary folder -# rm -rf "${GITHUB_WORKSPACE}/temp" \ No newline at end of file +# rm -rf "${GITHUB_WORKSPACE}/temp"