-
Notifications
You must be signed in to change notification settings - Fork 3
33 lines (31 loc) · 969 Bytes
/
pr_check.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
name: pr check
on: [pull_request]
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@0d381219ddf674d61a7572ddd19d7941e271515c # v2.9.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: installing node@18
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 20.9.0
- name: installing dependencies
run: npm ci
- name: linting
run: npm run lint
- name: formatting
run: npm run format
- name: build
run: npm run build
- name: unit test
run: npm run test
- name: prepare test e2e
run: npm run start & sleep 10
- name: test e2e
run: npm run test:e2e-ci