Skip to content

Commit e55c9f0

Browse files
Update test-cache.yml
1 parent 97a6be0 commit e55c9f0

File tree

1 file changed

+7
-30
lines changed

1 file changed

+7
-30
lines changed

.github/workflows/test-cache.yml

Lines changed: 7 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,25 @@
1-
name: Test cache option
2-
1+
name: Test
32
on:
4-
# push:
5-
# branches:
6-
# - sapMachine
7-
workflow_dispatch:
3+
4+
push:
85

96
jobs:
107
test:
118
runs-on: ${{ matrix.os }}
129
strategy:
1310
fail-fast: false
1411
matrix:
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-
12+
os: [ubuntu-latest, windows-latest, macos-latest]
13+
2414
steps:
2515
- name: Checkout code
2616
uses: actions/checkout@v4
2717

2818
- name: Set up Java
29-
uses: Shegox/setup-java@main
19+
uses: actions/setup-java@v4
3020
with:
31-
distribution: 'sapmachine'
32-
java-version: '21'
21+
java-version: '9.0.4'
3322
cache: ${{ matrix.build-system }}
3423

35-
- name: Build with Maven
36-
if: matrix.build-system == 'maven'
37-
run: mvn -B package --file pom.xml
38-
39-
- name: Build with Gradle
40-
if: matrix.build-system == 'gradle'
41-
run: ./gradlew build --no-daemon
42-
43-
- name: Build with SBT
44-
if: matrix.build-system == 'sbt'
45-
run: sbt package
46-
4724
- name: Verify Java version
4825
run: java -version

0 commit comments

Comments
 (0)