Skip to content

Commit f15d415

Browse files
improve CI job
1 parent 8b3a13b commit f15d415

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/ci-build.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
jobs:
1111
build:
1212
runs-on: ubuntu-latest
13-
timeout-minutes: 20
13+
timeout-minutes: 15
1414
strategy:
1515
fail-fast: false
1616
matrix:
@@ -33,15 +33,21 @@ jobs:
3333
with:
3434
java-version: ${{ matrix.java-version }}
3535
distribution: "adopt"
36-
cache: "maven"
36+
- name: Cache Maven dependencies
37+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
38+
with:
39+
path: ~/.m2/repository
40+
key: v1-${{ runner.os }}-maven-${{ matrix.java-version }}-${{ hashFiles('**/pom.xml') }}
41+
restore-keys: |
42+
v1-${{ runner.os }}-maven-${{ matrix.java-version }}-
3743
- name: Compile
3844
run: |
3945
if [ ${{ matrix.java-version }} == "8" ]; then
4046
export TRAVIS_JDK=openjdk8
4147
fi
4248
./scripts/run_no_prep_tests.sh clean compile test-compile
4349
env:
44-
CI_ARGS: "-T 1C"
50+
CI_ARGS: "--batch-mode -T 1C"
4551
MAVEN_OPTS: ${{ matrix.maven-opts }}
4652
- name: Run tests
4753
run: |

0 commit comments

Comments
 (0)