Skip to content

Commit

Permalink
feat: Codecov integration for backend
Browse files Browse the repository at this point in the history
  • Loading branch information
mvegter committed Mar 30, 2020
1 parent 9939709 commit 032ea1c
Show file tree
Hide file tree
Showing 4 changed files with 1,258 additions and 9 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,33 @@ jobs:
working-directory: ./backend
env:
CI: true
coverage:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
node-version: [12.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Installing dependencies
run: npm ci
working-directory: ./backend
- name: Executing test suite
run: npm test
working-directory: ./backend
env:
CI: true
- name: Generate coverage report
run: npm run coverage
working-directory: ./backend
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
flags: backend
file: ./backend/coverage/coverage-final.json
Loading

0 comments on commit 032ea1c

Please sign in to comment.