Skip to content

Commit

Permalink
chore(ci): include test report
Browse files Browse the repository at this point in the history
  • Loading branch information
acellam committed Aug 12, 2024
1 parent f0e5629 commit 3416b42
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ jobs:
- run: npm run build --if-present
- run: npm test
env:
NODE_ENV: 'test'
- name: create test coverage report
run: npm run upload_coverage
NODE_ENV: 'test:unit'
- name: Upload coverage reports
uses: codecov/codecov-action@v4.2.0
with:
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"test": "NODE_ENV='test' RDBMS_DATABASE_URI='mysql://' TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' mocha --config .mocharc.json",
"test:dev": "NODE_ENV='test' RDBMS_DATABASE_URI='mysql://' TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' mocha --config .mocharc.dev.json",
"test:unit": "NODE_ENV='test' RDBMS_DATABASE_URI='mysql://' TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc -r lcov -e .ts -x \"*.spec.ts\" mocha --config .mocharc.json -r ts-node/register && nyc report",
"upload_coverage": "nyc npm test && nyc report --reporter=text-lcov",
"lint": "",
"lint:fix": "npm run lint -- --fix",
"build:development": "grunt development",
Expand Down

0 comments on commit 3416b42

Please sign in to comment.