Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

codecov and github actions CI #91

Merged
merged 13 commits into from
Jun 16, 2020
Merged
24 changes: 24 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI

on:
pull_request:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Install Dependencies
run: npm install

- name: Check tests before PR
run: |
npm run test

- name: Code Quality (codecov)
run: bash <(curl -s https://codecov.io/bash) -t ${{secrets.CODECOV_TOKEN}}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
*.swo
.env
node_modules
coverage
25 changes: 25 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"dependencies": {
"bcrypt": "^4.0.1",
"ejs": "^3.1.3",
"express-session": "^1.17.1",
"express": "^4.17.1",
"express-session": "^1.17.1",
"mailgun-js": "^0.22.0",
"node-fetch": "^2.6.0",
"pg": "^8.0.2",
Expand Down
2 changes: 1 addition & 1 deletion src/server.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ describe('Testing routes', () => {
await app.delete.mock.calls[1][1]()
expect(userRoutes.logoutUser).toHaveBeenCalled()
})
})
})