Skip to content

Commit 65b6472

Browse files
committed
TEST: Test cache option with dependency paths 'maven', 'gradle', 'sbt'
1 parent 41463a8 commit 65b6472

File tree

2 files changed

+32
-3
lines changed

2 files changed

+32
-3
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Test cache option with dependency paths 'maven', 'gradle', 'sbt'
2+
on:
3+
push:
4+
branches:
5+
- sapMachine
6+
7+
workflow_dispatch:
8+
jobs:
9+
test:
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
matrix:
13+
os: [ubuntu-latest, windows-latest, macos-latest]
14+
build-system: ['maven', 'gradle', 'sbt']
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
- name: Set up Java
19+
uses: Shegox/setup-java@main
20+
with:
21+
distribution: 'sapmachine'
22+
java-version: '21'
23+
cache: ${{ matrix.build-system }}
24+
cache-dependency-path: |
25+
${{ matrix.build-system == 'maven' && '**/pom.xml' }}
26+
${{ matrix.build-system == 'gradle' && '**/*.gradle*' }}
27+
${{ matrix.build-system == 'sbt' && '**/build.sbt' }}
28+
- name: Verify Java version
29+
run: java -version

.github/workflows/test-cache.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Test cache option
22

33
on:
4-
push:
5-
branches:
6-
- sapMachine
4+
# push:
5+
# branches:
6+
# - sapMachine
77

88
workflow_dispatch:
99

0 commit comments

Comments
 (0)