Skip to content

Commit f1f7c22

Browse files
committed
Test cache option
1 parent 93e8319 commit f1f7c22

File tree

2 files changed

+33
-14
lines changed

2 files changed

+33
-14
lines changed

.github/workflows/test-cache-dependency-path.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,17 @@ jobs:
4545
cache: 'sbt'
4646
cache-dependency-path: build.sbt
4747

48+
- name: Build with Maven
49+
if: matrix.build-system == 'maven'
50+
run: mvn -B package --file pom.xml
51+
52+
- name: Build with Gradle
53+
if: matrix.build-system == 'gradle'
54+
run: ./gradlew build --no-daemon
55+
56+
- name: Build with SBT
57+
if: matrix.build-system == 'sbt'
58+
run: sbt package
59+
4860
- name: Verify Java version
4961
run: java -version

.github/workflows/test-cache.yml

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches:
66
- sapMachine
7-
87
workflow_dispatch:
98

109
jobs:
@@ -15,20 +14,28 @@ jobs:
1514
os: [ubuntu-latest, windows-latest, macos-latest]
1615
cache: ['maven']
1716
steps:
18-
- name: Checkout code
19-
uses: actions/checkout@v4
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
20+
- name: Set up Java
21+
uses: gowridurgad/setup-java-fork@testing-snap
22+
with:
23+
distribution: 'sapmachine'
24+
java-version: '21'
25+
cache: ${{ matrix.cache }}
2026

21-
- name: Set up Java
22-
uses: gowridurgad/setup-java-fork@testing-snap
23-
with:
24-
distribution: 'sapmachine'
25-
java-version: '21'
26-
cache: ${{ matrix.cache }}
27+
- name: Build with Maven
28+
if: matrix.build-system == 'maven'
29+
run: mvn -B package --file pom.xml
2730

28-
- name: Build with Maven
29-
run: mvn -B package --file pom.xml
31+
- name: Build with Gradle
32+
if: matrix.build-system == 'gradle'
33+
run: ./gradlew build --no-daemon
3034

31-
- name: Verify Java version
32-
run: java -version
35+
- name: Build with SBT
36+
if: matrix.build-system == 'sbt'
37+
run: sbt package
3338

34-
39+
- name: Verify Java version
40+
run: java -version
41+

0 commit comments

Comments
 (0)