-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (44 loc) · 1011 Bytes
/
ci.yml
File metadata and controls
44 lines (44 loc) · 1011 Bytes
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
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
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