Skip to content

Commit

Permalink
Enforce node16 for ci workflow runs
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
  • Loading branch information
peterzhuamazon committed Nov 11, 2024
1 parent 5325d2e commit 2908060
Showing 1 changed file with 83 additions and 82 deletions.
165 changes: 83 additions & 82 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ jobs:
strategy:
fail-fast: false
matrix:
java: [21, 23]
java: [21]
# java: [21, 23]

name: Build job-scheduler Plugin on Linux using Container Image
runs-on: ubuntu-latest
Expand All @@ -36,7 +37,7 @@ jobs:

steps:
- name: Checkout job-scheduler
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup Java ${{ matrix.java }}
uses: actions/setup-java@v1
with:
Expand All @@ -49,93 +50,93 @@ jobs:
su `id -un 1000` -c "./gradlew build && ./gradlew publishToMavenLocal"
- name: Upload Coverage Report
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: always()
with:
name: linux-JDK${{ matrix.java }}-reports
path: |
./build/reports/
build-job-scheduler-MacOS:
strategy:
fail-fast: false
matrix:
java: [21, 23]

name: Build job-scheduler Plugin on MacOS
needs: Get-CI-Image-Tag
runs-on: macos-latest

steps:
- name: Checkout job-scheduler
uses: actions/checkout@v2

- name: Setup Java ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}

- name: Run build
run: |
./gradlew build
- name: Publish to Maven Local
run: |
./gradlew publishToMavenLocal
- name: Upload Coverage Report
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}

- uses: actions/upload-artifact@v3
if: always()
with:
name: macos-JDK${{ matrix.java }}-reports
path: |
./build/reports/
build-job-scheduler-Windows:
strategy:
fail-fast: false
matrix:
java: [ 21, 23 ]

name: Build job-scheduler Plugin on Windows
needs: Get-CI-Image-Tag
runs-on: windows-latest

steps:
- name: Checkout job-scheduler
uses: actions/checkout@v2

- name: Setup Java ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}

- name: Run build
run: |
./gradlew.bat build
- name: Publish to Maven Local
run: |
./gradlew.bat publishToMavenLocal
- name: Upload Coverage Report
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}

- uses: actions/upload-artifact@v3
if: always()
with:
name: windows-JDK${{ matrix.java }}-reports
path: |
./build/reports/
# build-job-scheduler-MacOS:
# strategy:
# fail-fast: false
# matrix:
# java: [21, 23]
#
# name: Build job-scheduler Plugin on MacOS
# needs: Get-CI-Image-Tag
# runs-on: macos-latest
#
# steps:
# - name: Checkout job-scheduler
# uses: actions/checkout@v4
#
# - name: Setup Java ${{ matrix.java }}
# uses: actions/setup-java@v1
# with:
# java-version: ${{ matrix.java }}
#
# - name: Run build
# run: |
# ./gradlew build
#
# - name: Publish to Maven Local
# run: |
# ./gradlew publishToMavenLocal
#
# - name: Upload Coverage Report
# uses: codecov/codecov-action@v4
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
#
# - uses: actions/upload-artifact@v4
# if: always()
# with:
# name: macos-JDK${{ matrix.java }}-reports
# path: |
# ./build/reports/
#
#
# build-job-scheduler-Windows:
# strategy:
# fail-fast: false
# matrix:
# java: [ 21, 23 ]
#
# name: Build job-scheduler Plugin on Windows
# needs: Get-CI-Image-Tag
# runs-on: windows-latest
#
# steps:
# - name: Checkout job-scheduler
# uses: actions/checkout@v4
#
# - name: Setup Java ${{ matrix.java }}
# uses: actions/setup-java@v1
# with:
# java-version: ${{ matrix.java }}
#
# - name: Run build
# run: |
# ./gradlew.bat build
#
# - name: Publish to Maven Local
# run: |
# ./gradlew.bat publishToMavenLocal
#
# - name: Upload Coverage Report
# uses: codecov/codecov-action@v4
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
#
# - uses: actions/upload-artifact@v4
# if: always()
# with:
# name: windows-JDK${{ matrix.java }}-reports
# path: |
# ./build/reports/

0 comments on commit 2908060

Please sign in to comment.