-
Notifications
You must be signed in to change notification settings - Fork 26
executable file
·32 lines (24 loc) · 938 Bytes
/
Copy pathant.yml
File metadata and controls
executable file
·32 lines (24 loc) · 938 Bytes
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
name: Java CI
on: [push, pull_request]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Download JUnit 5 dependencies
run: |
mvn dependency:get -q -Dartifact=org.junit.jupiter:junit-jupiter-api:5.9.3
mvn dependency:get -q -Dartifact=org.junit.jupiter:junit-jupiter-engine:5.9.3
mvn dependency:get -q -Dartifact=org.junit.platform:junit-platform-engine:1.9.3
mvn dependency:get -q -Dartifact=org.junit.platform:junit-platform-commons:1.9.3
mvn dependency:get -q -Dartifact=org.junit.platform:junit-platform-launcher:1.9.3
mvn dependency:get -q -Dartifact=org.opentest4j:opentest4j:1.2.0
- name: Build with Ant
run: ant -noinput
- name: Run tests
run: ant -noinput test