-
-
Notifications
You must be signed in to change notification settings - Fork 12
55 lines (43 loc) · 1.18 KB
/
checks.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
name: Checks
on: [push, pull_request, workflow_dispatch]
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install node.js v20
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'yarn'
cache-dependency-path: yarn.lock
- name: Install dependencies
run: yarn --immutable
- name: Copy Example Files
run: |
cp config/options.example.ts config/options.ts
cp lib/badlinks-secret.example.ts lib/badlinks-secret.ts
- name: ESLint
run: yarn lint
- name: Build
run: yarn build
- name: Dry Run
run: yarn start:dry
check-format:
name: Check Formatting
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install node.js v20
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'yarn'
cache-dependency-path: yarn.lock
- name: Install dependencies
run: yarn --immutable
- name: Prettier Check
run: yarn format:check