Skip to content

Commit 7390767

Browse files
committed
Update CI settings
1 parent ec38376 commit 7390767

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,28 @@
11
name: Build and Deploy Snapshot
22
on:
33
push:
4-
branches:
5-
- master
6-
- "3.0"
7-
- "2.18"
4+
branches: [2.*]
85
paths-ignore:
96
- "README.md"
107
- "release-notes/*"
118
pull_request:
12-
branches:
13-
- master
14-
- "3.0"
15-
- "2.18"
9+
branches: [2.*]
1610
paths-ignore:
1711
- "README.md"
1812
- "release-notes/*"
1913
jobs:
2014
build:
21-
runs-on: ${{ matrix.os }}
15+
runs-on: 'ubuntu-latest'
2216
strategy:
2317
fail-fast: false
2418
matrix:
2519
java_version: ['8', '11', '17']
26-
os: ['ubuntu-20.04']
2720
env:
2821
JAVA_OPTS: "-XX:+TieredCompilation -XX:TieredStopAtLevel=1"
2922
steps:
30-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
3124
- name: Set up JDK
32-
uses: actions/setup-java@v3
25+
uses: actions/setup-java@v4
3326
with:
3427
distribution: 'temurin'
3528
java-version: ${{ matrix.java_version }}
@@ -57,7 +50,7 @@ jobs:
5750
run: ./mvnw -B -q -ff -ntp test
5851
- name: Publish code coverage
5952
if: github.event_name != 'pull_request' && matrix.java_version == '8'
60-
uses: codecov/codecov-action@v1
53+
uses: codecov/codecov-action@v5
6154
with:
6255
token: ${{ secrets.CODECOV_TOKEN }}
6356
file: ./target/site/jacoco/jacoco.xml

0 commit comments

Comments
 (0)