File tree 1 file changed +19
-14
lines changed
1 file changed +19
-14
lines changed Original file line number Diff line number Diff line change 1
- # This workflow will build a Java project with Ant
2
- # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-ant
3
-
4
1
name : Java CI
5
2
6
3
on :
11
8
12
9
jobs :
13
10
build :
14
-
15
11
runs-on : ubuntu-latest
16
12
17
13
steps :
18
- - uses : actions/checkout@v4
19
- - name : Set up JDK 17
20
- uses : actions/setup-java@v4
21
- with :
22
- java-version : ' 17'
23
- distribution : ' zulu'
24
- - name : Build with Ant
25
- run : |
26
- ant -noinput -buildfile build.xml
27
- java -cp build/classes com.bulletinfotech.licitacao.LicitacaoApp
14
+ - uses : actions/checkout@v3
15
+ - name : Set up JDK 17
16
+ uses : actions/setup-java@v3
17
+ with :
18
+ java-version : ' 17'
19
+ distribution : ' zulu'
20
+ - name : Cache Maven packages
21
+ uses : actions/cache@v3
22
+ with :
23
+ path : ~/.m2
24
+ key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
25
+ restore-keys : |
26
+ ${{ runner.os }}-maven-
27
+ - name : Build with Maven
28
+ run : mvn clean install -DskipTests
29
+ - name : Build with Ant
30
+ run : |
31
+ ant -noinput -buildfile build.xml
32
+ java -cp target/classes com.bulletinfotech.licitacao.LicitacaoApp
You can’t perform that action at this time.
0 commit comments