Skip to content

Commit

Permalink
👷 Add test coverage into github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas2D committed Aug 24, 2021
1 parent 4f56f13 commit ae206ec
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@ jobs:
sudo chown root:firebird /opt/firebird/SYSDBA.password
sudo chmod 440 /opt/firebird/SYSDBA.password
sudo chown -R firebird:firebird .
- name: Tests
run: |
sudo mkdir coverage
sudo chown -R firebird:firebird coverage
sudo chmod 777 coverage
sg firebird -c "yarn global add env-cmd; env-cmd -f /opt/firebird/SYSDBA.password yarn test"
- name: Test Coverage
uses: artiomtr/jest-coverage-report-action@v2.0-rc.4
with:
coverage-file: ./coverage/coverage-final.json
base-coverage-file: ./coverage/coverage-final.json
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ lib
*.fdb
.idea
.vscode
coverage

0 comments on commit ae206ec

Please sign in to comment.