-
Notifications
You must be signed in to change notification settings - Fork 10
48 lines (37 loc) · 937 Bytes
/
check.yaml
File metadata and controls
48 lines (37 loc) · 937 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
45
46
47
48
name: check
on:
push:
branches: main
pull_request:
branches: "*"
jobs:
check:
name: check
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Validate package.json
run: |
node -e "JSON.parse(require('fs').readFileSync('package.json','utf8'))"
- name: Clear Yarn Cache
run: yarn cache clean
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Audit Dependencies
run: yarn audit
continue-on-error: true
- name: Test Project
run: yarn run test
- name: Check liniting
run: yarn run lint:ci
continue-on-error: true
- name: Build Project
run: yarn run build