Skip to content

Commit c8b68a0

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents 2ca67a3 + ddd8688 commit c8b68a0

File tree

1 file changed

+19
-14
lines changed

1 file changed

+19
-14
lines changed

.github/workflows/ant.yml

+19-14
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
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-
41
name: Java CI
52

63
on:
@@ -11,17 +8,25 @@ on:
118

129
jobs:
1310
build:
14-
1511
runs-on: ubuntu-latest
1612

1713
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

0 commit comments

Comments
 (0)