Skip to content

Commit 4dc260e

Browse files
committed
add ci github action, presetup command to install deps needed to run setup script
1 parent 840163a commit 4dc260e

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
7+
# Allows to run job manually
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
# Checkout repo
15+
- uses: actions/checkout@v2
16+
- uses: actions/setup-node@v1
17+
with:
18+
node-version: 12
19+
- name: Install all dependencies
20+
run: npm i
21+
- name: Run all test cases
22+
run: npm run test -- --silent
23+
- name: Build app
24+
run: npm run start

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"test": "jest",
1616
"test:watch": "jest --watch",
1717
"test:coverage": "jest --coverage",
18+
"presetup": "npm i shelljs compare-versions",
1819
"setup": "node ./bin/setup.js"
1920
},
2021
"keywords": [],

0 commit comments

Comments
 (0)