Skip to content

Commit

Permalink
feat: added test steps in the GHA CI
Browse files Browse the repository at this point in the history
  • Loading branch information
brunurd committed Aug 5, 2024
1 parent eaceffe commit ee3a0c9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ jobs:
version: 8
run_install: |
- recursive: true
- name: Lint
run: pnpm lint
- name: Test
run: pnpm test
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ npm-shrinkwrap.json
bun.lockb

# test
/coverage/
/tests_report/
coverage/
tests_report/
.pytest_cache/
.coverage
junit.xml
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,9 @@
},
"workspaces": [
"packages"
]
],
"scripts": {
"lint": "pnpm run -r lint",
"test": "pnpm run -r test-coverage"
}
}
2 changes: 1 addition & 1 deletion packages/dmark/scripts/nodejs/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { runQueue, cmdTask } = require('../../src/utils');

const watch = process.argv.includes('--watch');
const coverage = process.argv.includes('--coverage');
const jestCmd = 'jest --config=./config/jest.config.js --forceExit --detectOpenHandles';
const jestCmd = 'jest --config=./config/jest.config.js --forceExit --detectOpenHandles'.split(' ');

jestCmd.push(watch ? '--watch' : '--watchAll=false');

Expand Down

0 comments on commit ee3a0c9

Please sign in to comment.