Skip to content

Commit

Permalink
feat: add test step in CI script
Browse files Browse the repository at this point in the history
  • Loading branch information
RcleydsonR committed Aug 24, 2022
1 parent b1e5a61 commit 6849e25
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
13 changes: 8 additions & 5 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 @@ -27,11 +27,14 @@ jobs:
- name: 🏗 Config files
run: |
echo "$FIREBASE_CONFIG_DEV" > ./src/config/firebaseAuthConfig.js
env:
FIREBASE_CONFIG_DEV: ${{ secrets.FIREBASE_CONFIG_DEV }}

- 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 6849e25

Please sign in to comment.