-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (50 loc) · 1.43 KB
/
ci.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
name: Ci
on:
pull_request:
push:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
permissions:
contents: read
jobs:
quality:
name: Quality
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # pin v4.1.3
timeout-minutes: 2
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # pin v4.0.2
with:
node-version-file: .tool-versions
cache: npm
timeout-minutes: 2
- name: Install dependencies
run: npm install --ignore-scripts
timeout-minutes: 2
- name: Check lint
run: npm run lint
timeout-minutes: 2
- name: Check prettier
run: npm run prettier:check
timeout-minutes: 2
test:
name: Test
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # pin v4.1.3
timeout-minutes: 2
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # pin v4.0.2
with:
node-version-file: .tool-versions
cache: npm
timeout-minutes: 2
- name: Install dependencies
run: npm install --ignore-scripts
timeout-minutes: 2
- name: Run tests
run: npm run test:unit
timeout-minutes: 2