Skip to content

Commit 83c7f41

Browse files
committed
Infrastructure: Add testing via GitHub Actions
1 parent 6b6f255 commit 83c7f41

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: ColorPicker
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repo
14+
uses: actions/checkout@v2
15+
16+
- name: Set up Node
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: '14'
20+
21+
- name: Install dependencies
22+
run: npm install
23+
24+
- name: Build
25+
run: npm build
26+
27+
- name: Lint
28+
run: npm lint
29+
30+
- name: Stage
31+
run: stage.sh
32+
33+
- name: Run Jest tests
34+
run: npm test

0 commit comments

Comments
 (0)