Skip to content

Commit 9355bdd

Browse files
committed
build: update CI workflow to use 'main' branch and upgrade action versions
1 parent de9b664 commit 9355bdd

1 file changed

Lines changed: 13 additions & 11 deletions

File tree

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
11
name: CI
22
on:
33
pull_request:
4-
branches: [ master ]
4+
branches: [ main ]
55
push:
6-
branches: [ master ]
6+
branches: [ main ]
77
jobs:
88
build:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v4
11+
- name: Checkout
12+
uses: actions/checkout@v4
1213
- name: Set up JDK 21
13-
uses: actions/setup-java@v3
14+
uses: actions/setup-java@v4
1415
with:
15-
distribution: 'temurin'
16+
distribution: temurin
1617
java-version: 21
17-
- name: Cache Maven packages
18-
uses: actions/cache@v3
18+
- name: Cache Maven dependencies
19+
uses: actions/cache@v4
1920
with:
20-
path: ~/.m2
21-
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
22-
restore-keys: ${{ runner.os }}-m2
21+
path: ~/.m2/repository
22+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
23+
restore-keys: |
24+
${{ runner.os }}-maven-
2325
- name: Build with Maven
2426
run: mvn clean install --no-transfer-progress
2527
- name: Upload coverage to Codecov
26-
uses: codecov/codecov-action@v3
28+
uses: codecov/codecov-action@v5

0 commit comments

Comments
 (0)