-
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@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: installing node@18
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
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