-
Notifications
You must be signed in to change notification settings - Fork 4
45 lines (37 loc) · 1022 Bytes
/
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
name: Continuous Integration
on:
pull_request:
branches: [main]
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
integrity:
name: Integrity Checks
runs-on: ubuntu-latest
permissions:
contents: write
deployments: write
steps:
- name: Checkout Source
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: Setup NodeJS
uses: actions/setup-node@v4
- name: Install Dependencies
run: npm ci
- name: Build for Production
env:
NODE_ENV: production
run: npm run build
- name: Runs Tests
env:
NODE_ENV: production
run: npm run test
# trial use, enabling error on broken link
- name: Check internal links
uses: untitaker/[email protected]
with:
args: ./build --check-anchors
# continue-on-error: true