-
Notifications
You must be signed in to change notification settings - Fork 413
46 lines (38 loc) · 1.09 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
40
41
42
43
44
45
46
name: Java CI
on:
push:
branches:
- master
jobs:
build-linux-jdk8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up JDK 8
uses: actions/setup-java@v1
with:
java-version: 1.8
java-package: jdk
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install xvfb
- name: Build with Maven
run: |
cd maven
xvfb-run -a mvn install
- name: Fetch archetype projects
uses: carlosperate/download-file-action@v1.0.3
with:
file-url: https://github.com/shannah/cn1-maven-archetypes/archive/refs/heads/master.zip
file-name: cn1-maven-archetypes.zip
- name: Install archetype projects
run: |
unzip cn1-maven-archetypes.zip
cd cn1-maven-archetypes-master
xvfb-run -a mvn install archetype:update-local-catalog
xvfb-run -a mvn archetype:crawl
- name: Run Maven Unit Tests
run: |
pwd
xvfb-run -a bash tests/all.sh
cd maven/integration-tests
xvfb-run -a bash all.sh