-
Notifications
You must be signed in to change notification settings - Fork 40
39 lines (34 loc) · 1.08 KB
/
ant.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
33
34
35
36
37
38
39
# 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
name: Java CI
on:
push:
branches: [ javaUI ]
pull_request:
branches: [ javaUI ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt update && sudo apt install gettext po4a
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Test exercise solutions (Ant)
run: ant -noinput -buildfile build.xml test-exos
- name: Unit tests (Ant)
run: ant -noinput -buildfile build.xml test-unit
- name: Integration tests (Ant)
run: ant -noinput -buildfile build.xml test-integration
- name: Update translations with po4a
run: po4a po4a.conf
- name: Build jarfile (Ant)
run: ant -noinput -buildfile build.xml dist
- name: Upload jar
uses: actions/upload-artifact@v2
with:
path: dist/*.jar