-
Notifications
You must be signed in to change notification settings - Fork 15
101 lines (83 loc) · 2.48 KB
/
build.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: Build
on:
push:
branches-ignore: release/*
pull_request:
schedule:
- cron: 0 0 * * *
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout with GIT
uses: actions/checkout@v2
- name: Cache NPM
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 13
- name: Update NPM
run: npm install --global npm@latest
- name: Install NPM dependencies
run: npm ci
- name: renovate-config-validator
run: npm run renovate-config-validator
- name: json5-lint
run: npm run json5-lint
build:
runs-on: ubuntu-latest
if: github.event_name != 'schedule'
steps:
- name: Checkout with GIT
uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 11
- name: Cache Maven dependencies
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Run tests
run: mvn --batch-mode test
- name: Generate Coveralls Report
run: mvn --batch-mode jacoco:report coveralls:report -DrepoToken=${{ secrets.COVERALLS_TOKEN }}
continue-on-error: true
nightly-build:
if: github.event_name == 'schedule'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
branch: [master, develop]
steps:
- name: Checkout with GIT
uses: actions/checkout@v2
with:
ref: ${{ matrix.branch }}
# TODO: reduce duplication with YAML anchors once supported (see https://github.community/t5/GitHub-Actions/Support-for-YAML-anchors/td-p/30336)
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 11
- name: Cache Maven dependencies
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Run tests
run: mvn --batch-mode test
- name: Generate Coveralls Report
run: mvn --batch-mode jacoco:report coveralls:report -DrepoToken=${{ secrets.COVERALLS_TOKEN }}
continue-on-error: true