-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (54 loc) · 1.91 KB
/
build.yaml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: build
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Download repository
uses: actions/checkout@v2
- name: Set up JDK 9
uses: actions/setup-java@v1
with:
java-version: 9
- name: Set up Maven
uses: stCarolas/setup-maven@v4
with:
maven-version: 3.6.3
- name: Maven dependency/resolve
run: mvn dependency:resolve
- name: Maven install
run: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V -e > output.txt
- name: Print logs
if: ${{ always() }}
run: |
tail -n 500 target/it-tests/dateformats-junit-test/build.log
tail -n 500 target/it-tests/dateformatsymbols-junit-test/build.log
tail -n 500 target/it-tests/decimalformat-junit-test/build.log
tail -n 500 target/it-tests/decimalformatsymbols-junit-test/build.log
tail -n 500 target/it-tests/gwt-jar-test/build.log
tail -n 500 output.txt
- uses: actions/upload-artifact@v2
if: failure()
with:
name: dateformats-junit-test-build.log
path: target/it-tests/dateformats-junit-test/build.log
- uses: actions/upload-artifact@v2
if: failure()
with:
name: dateformatsymbols-junit-test-build.log
path: target/it-tests/dateformatsymbols-junit-test/build.log
- uses: actions/upload-artifact@v2
if: failure()
with:
name: decimalformat-junit-test-build.log
path: target/it-tests/decimalformat-junit-test/build.log
- uses: actions/upload-artifact@v2
if: failure()
with:
name: decimalformatsymbols-junit-test-build.log
path: target/it-tests/decimalformatsymbols-junit-test/build.log
- uses: actions/upload-artifact@v2
if: failure()
with:
name: it-output.txt
path: it-output.txt