Skip to content

Commit

Permalink
feat: tests in workflows (#19)
Browse files Browse the repository at this point in the history
* Allow backend tests to do nothing w/o exit 1

* Comment out known working code during testing

* Remove package-lock.json from .gitignore

* Consolidate .gitignore files
  • Loading branch information
DerekRoberts authored Sep 22, 2023
1 parent 905d86e commit b5b1097
Show file tree
Hide file tree
Showing 6 changed files with 779 additions and 30 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ jobs:
- uses: bcgov-nr/[email protected]
with:
commands: |
whoami
pwd
ls -la
npm ci
npm run test
dir: ${{ matrix.dir }}
Expand All @@ -97,4 +100,4 @@ jobs:
-Dsonar.tests.inclusions=**/*spec.ts
-Dsonar.javascript.lcov.reportPaths=./coverage/lcov.info
sonar_token: ${{ secrets[matrix.token] }}
triggers: ${{ matrix.triggers }}
# triggers: ${{ matrix.triggers }}
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,17 @@ test-report.xml

# VSCode
.vscode/

# dependencies
**/.pnp
.pnp.js

# testing
**/coverage

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
2 changes: 0 additions & 2 deletions backend/.gitignore

This file was deleted.

Loading

0 comments on commit b5b1097

Please sign in to comment.