Skip to content

Commit f4f8db7

Browse files
committed
chore: add pull request build verification
1 parent a728aee commit f4f8db7

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/verify-build.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Verify build
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request_target:
6+
types: [ opened, synchronize, reopened ]
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v3
14+
15+
- name: install
16+
run: npm ci
17+
18+
- name: build lib
19+
run: npm run lib
20+
21+
- name: build demo
22+
run: npm run build
23+
24+
lint:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v3
29+
30+
- name: install
31+
run: npm ci
32+
33+
- name: lint
34+
run: npm run lint
35+
36+
test:
37+
runs-on: ubuntu-20.04
38+
steps:
39+
- name: Checkout
40+
uses: actions/checkout@v3
41+
42+
- name: install
43+
run: npm ci
44+
45+
- name: test
46+
run: npm run test -- --watch=false --browsers=ChromeHeadless

0 commit comments

Comments
 (0)