-
Notifications
You must be signed in to change notification settings - Fork 22
63 lines (60 loc) · 1.5 KB
/
integrate.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
name: CI
on:
push:
branches:
- 'track/*'
- 'main'
pull_request:
branches:
- 'track/*'
- 'main'
jobs:
testing:
runs-on: ubuntu-latest
name: Testing
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4
with:
node-version: 20
- name: Install dependencies
run: |
npm install
- name: Execute tests
run: |
npm run test
linting:
runs-on: ubuntu-latest
name: Linting
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4
with:
node-version: 20
- name: Install dependencies
run: |
npm install
- name: Lint
run: |
npm run format
npm run lint
build:
runs-on: ubuntu-latest
name: Build
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4
with:
node-version: 20
- name: Install dependencies
run: |
npm install
- name: Build
run: |
npm run build
if [[ -n "$(git status -s)" ]]; then
echo "Please run 'npm run build' then commit/push changes"
echo
git diff
exit 1
fi