Skip to content

Commit

Permalink
feat: add test step at CI script
Browse files Browse the repository at this point in the history
  • Loading branch information
RcleydsonR committed Aug 24, 2022
1 parent 802b00d commit 9ff2984
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
types: [ opened ]

jobs:
lint:
test-lint:
runs-on: ubuntu-latest
defaults:
run:
Expand All @@ -31,7 +31,8 @@ jobs:
- name: 📦 Install dependencies
run: yarn install --pure-lockfile --non-interactive

- name: 📦 Run lint
run: npx eslint ./src
- name: 📦 Run test
run: yarn test

# Test job
- name: 📦 Run lint
run: yarn lint
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
"start:dev": "nodemon index.js",
"dev": "node server.js",
"test": "jest",
"test:coverage": "jest --coverage"
"test:coverage": "jest --coverage",
"lint": "npx eslint ./src",
"lint:fix": "npx eslint ./src --fix"
},
"dependencies": {
"@sentry/node": "5.18.0",
Expand Down

0 comments on commit 9ff2984

Please sign in to comment.