Skip to content

Commit 0f45367

Browse files
committed
fix: pins on CI
1 parent c96cacb commit 0f45367

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,13 @@ on:
88

99
jobs:
1010
build:
11-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
1414
javaversion: ["8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22"]
1515
steps:
16-
- uses: actions/checkout@v3
17-
- name: Set up JDK for compilation
18-
uses: actions/setup-java@v3
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-java@v4
1918
with:
2019
distribution: "zulu"
2120
java-version: "22" # Always use the latest JDK for building
@@ -31,18 +30,17 @@ jobs:
3130
- name: Build Library
3231
run: make build
3332
- name: Set up Java ${{ matrix.javaversion }}
34-
uses: actions/setup-java@v3
33+
uses: actions/setup-java@v4
3534
with:
3635
distribution: "zulu"
3736
java-version: ${{ matrix.javaversion }}
3837
- name: Run test with Java ${{ matrix.javaversion }}
3938
run: EASYPOST_TEST_API_KEY=123 EASYPOST_PROD_API_KEY=123 make test
4039
coverage:
41-
runs-on: ubuntu-20.04
40+
runs-on: ubuntu-latest
4241
steps:
43-
- uses: actions/checkout@v3
44-
- name: Set up JDK for compilation
45-
uses: actions/setup-java@v3
42+
- uses: actions/checkout@v4
43+
- uses: actions/setup-java@v4
4644
with:
4745
distribution: "zulu"
4846
java-version: "22" # Always use the latest JDK for building
@@ -73,9 +71,13 @@ jobs:
7371
github-token: ${{ secrets.GITHUB_TOKEN }}
7472
path-to-lcov: "./coverage.lcov"
7573
lint:
76-
runs-on: ubuntu-20.04
74+
runs-on: ubuntu-latest
7775
steps:
78-
- uses: actions/checkout@v3
76+
- uses: actions/checkout@v4
77+
- uses: actions/setup-java@v4
78+
with:
79+
distribution: "zulu"
80+
java-version: "22" # Always use the latest JDK for building
7981
- name: Install checkstyle and style guide
8082
run: make install-checkstyle
8183
- name: Load Maven dependencies and CVE database cache
@@ -94,11 +96,10 @@ jobs:
9496
path: ${{github.workspace}}/target/dependency-check-report.html
9597
docs:
9698
if: github.ref == 'refs/heads/master'
97-
runs-on: ubuntu-20.04
99+
runs-on: ubuntu-latest
98100
steps:
99-
- uses: actions/checkout@v3
100-
- name: Set up JDK for compilation
101-
uses: actions/setup-java@v3
101+
- uses: actions/checkout@v4
102+
- uses: actions/setup-java@v4
102103
with:
103104
distribution: "zulu"
104105
java-version: "22" # Always use the latest JDK for building

0 commit comments

Comments
 (0)