-
Notifications
You must be signed in to change notification settings - Fork 25
70 lines (56 loc) · 1.74 KB
/
Copy pathcheck.yml
File metadata and controls
70 lines (56 loc) · 1.74 KB
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
name: CI
on: [pull_request]
jobs:
pre:
name: Prerequisites
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Enforce CLA signature
env:
COMMIT_RANGE: ${{ github.event.pull_request.base.sha }}...${{ github.event.pull_request.head.sha }}
run: curl https://raw.githubusercontent.com/shapesecurity/CLA/HEAD/cla-check.sh | bash
test:
name: Test
needs: pre
if: |
!cancelled() && !failure()
runs-on: ubuntu-latest
strategy:
matrix:
java: [11]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Set up node
uses: actions/setup-node@v2
with:
node-version: 18
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-${{ matrix.java }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-${{ matrix.java }}-m2
- name: Build sources
working-directory: build-scripts
run: |
npm ci
npm run clean
npm run build
- name: Enforce git clean
run: if [ ! -z "$(git status --porcelain)" ]; then echo "repo is dirty:"; git status --porcelain; exit 1; fi
- name: Build and test with Maven
run: mvn --batch-mode --threads 8 clean verify
- name: Build Jar with dependencies
run: mvn assembly:assembly -DdescriptorId=jar-with-dependencies