-
Notifications
You must be signed in to change notification settings - Fork 2
73 lines (60 loc) · 1.78 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
63
64
65
66
67
68
69
70
71
72
73
name: Continuous Integration
run-name: ${{ github.actor }} is triggering Continuous Integration
on:
# Trigger the workflow on pull request,
pull_request: {}
jobs:
build:
name: Build the Site
runs-on: ubuntu-latest
env:
CI: true
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
- name: Setup Node.js environment
uses: actions/[email protected]
with:
# Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0.
node-version: 20.10.0
- name: 📥 Download deps
run: npm install --frozen-lockfile
- name: Build the Site
run: npm run build
eslint-prettier:
name: ⬣ ESLint && 💅 Prettier
needs: build
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/[email protected]
with:
# Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0.
node-version: 16
- name: 📥 Download deps
uses: bahmutov/npm-install@v1
- name: Run linters
uses: wearerequired/lint-action@v2
with:
auto_fix: true
eslint: true
prettier: true
typecheck:
name: ʦ TypeScript
needs: build
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/[email protected]
with:
# Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0.
node-version: 16
- name: 📥 Download deps
uses: bahmutov/npm-install@v1
- name: 🔎 Type check
run: npm run typecheck