Skip to content

Commit 66b46e5

Browse files
committed
Test cache option
1 parent f1f7c22 commit 66b46e5

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ jobs:
1212
matrix:
1313
os: [ubuntu-latest, windows-latest, macos-latest]
1414
build-system: ['maven', 'gradle', 'sbt']
15+
include:
16+
- build-system: 'sbt'
17+
os: macos-12 # Override to use macOS-12 specifically for SBT builds
18+
exclude:
19+
- build-system: 'sbt'
20+
os: macos-latest # Exclude macos-latest specifically for SBT builds
21+
1522
steps:
1623
- name: Checkout code
1724
uses: actions/checkout@v4

.github/workflows/test-cache.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,17 @@ jobs:
1010
test:
1111
runs-on: ${{ matrix.os }}
1212
strategy:
13+
fail-fast: false
1314
matrix:
14-
os: [ubuntu-latest, windows-latest, macos-latest]
15-
cache: ['maven']
15+
os: [ubuntu-latest, windows-latest, macos-latest] # Include macos-latest for all except where overridden
16+
build-system: ['maven', 'gradle', 'sbt']
17+
include:
18+
- build-system: 'sbt'
19+
os: macos-12 # Override to use macOS-12 specifically for SBT builds
20+
exclude:
21+
- build-system: 'sbt'
22+
os: macos-latest # Exclude macos-latest specifically for SBT builds
23+
1624
steps:
1725
- name: Checkout code
1826
uses: actions/checkout@v4
@@ -37,5 +45,4 @@ jobs:
3745
run: sbt package
3846

3947
- name: Verify Java version
40-
run: java -version
41-
48+
run: java -version

0 commit comments

Comments
 (0)