-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (67 loc) · 1.64 KB
/
ci.yml
File metadata and controls
67 lines (67 loc) · 1.64 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
name: CI
on: workflow_call
permissions:
contents: read
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
with:
fetch-depth: 0
- name: Set up node
uses: actions/setup-node@v6.3.0
with:
node-version-file: .nvmrc
cache: npm
- name: Install packages
run: npm ci
- name: Run lint (JavaScript)
run: npm run lint:js
- name: Run lint (Markdown)
run: npm run lint:md
- name: Run lint (Git)
run: npm run lint:git
- name: Run lint (Package)
run: npm run lint:pkg
test:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
- name: Set up node
uses: actions/setup-node@v6.3.0
with:
node-version-file: .nvmrc
cache: npm
- name: Install packages
run: npm ci
- name: Run tests (unit)
run: npm run test:unit
- name: Run tests (integration)
run: npm run test:integration
- name: Report coverage
uses: coverallsapp/github-action@v2.3.7
with:
github-token: ${{github.token}}
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
- name: Set up node
uses: actions/setup-node@v6.3.0
with:
node-version-file: .nvmrc
cache: npm
- name: Install packages
run: npm ci
- name: Run build
run: npm run build