-
Notifications
You must be signed in to change notification settings - Fork 70
32 lines (28 loc) · 957 Bytes
/
ant-pull.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# This workflow will build a Java project with Ant
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-ant
# Same as ant.yml, except that no SonarCloud scan is done since pull requests
# do not have access to repository secrets (and thus generate an error when
# attempting to use Sonar).
name: Build (pull request)
on:
pull_request:
branches: [ master ]
jobs:
build:
name: Compile
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java-version: [ '11', "17", "19" ]
steps:
- uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
- name: Build with Ant
run: ant -noinput -buildfile build.xml
- name: Test with JUnit
run: ant -noinput -buildfile build.xml test