File tree Expand file tree Collapse file tree 1 file changed +7
-30
lines changed Expand file tree Collapse file tree 1 file changed +7
-30
lines changed Original file line number Diff line number Diff line change 1
- name : Test cache option
2
-
1
+ name : Test
3
2
on :
4
- # push:
5
- # branches:
6
- # - sapMachine
7
- workflow_dispatch :
3
+
4
+ push :
8
5
9
6
jobs :
10
7
test :
11
8
runs-on : ${{ matrix.os }}
12
9
strategy :
13
10
fail-fast : false
14
11
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
+
24
14
steps :
25
15
- name : Checkout code
26
16
uses : actions/checkout@v4
27
17
28
18
- name : Set up Java
29
- uses : Shegox /setup-java@main
19
+ uses : actions /setup-java@v4
30
20
with :
31
- distribution : ' sapmachine'
32
- java-version : ' 21'
21
+ java-version : ' 9.0.4'
33
22
cache : ${{ matrix.build-system }}
34
23
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
-
47
24
- name : Verify Java version
48
25
run : java -version
You can’t perform that action at this time.
0 commit comments