-
-
Notifications
You must be signed in to change notification settings - Fork 624
40 lines (32 loc) · 914 Bytes
/
ci-website.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
name: 'CI - Website'
on:
pull_request:
paths:
- 'website/**'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Actions - Checkout
uses: actions/checkout@v4
- name: Actions - Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Cache Dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: npm-website-${{ hashFiles('website/package-lock.json') }}
restore-keys: npm-website-
- name: Installing Dependencies
run: cd website && npm ci
- name: Lint Checking
run: cd website && npm run lintcheck
- name: Checking Types
run: cd website && npm run typecheck
- name: Run Unit Tests
run: cd website && npm run test:unit
- name: Checking Build
run: cd website && npm run build