Skip to content

Commit

Permalink
chore: replace codecov bash uploader with github action (#904)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHenry committed Feb 13, 2022
1 parent 26e8200 commit 5616d2a
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Expand Up @@ -82,14 +82,17 @@ jobs:
cmd2: yarn build
cmd3: yarn check-rule-docs
cmd4: yarn lint
cmd5: yarn test
cmd5: yarn test --codeCoverage

- name: Run distributed integration tests with independent local registries
run: npx nx run-many --target=integration-test --all --withRegistry

- name: Publish code coverage report
run: |
bash <(curl -s https://codecov.io/bash) -t ${{ secrets.CODECOV_TOKEN }}
uses: codecov/codecov-action@v2
with:
files: coverage/packages/**/lcov.info
flags: unittest
name: codecov

- name: Stop all running agents for this CI run
# It's important that we always run this step, otherwise in the case of any failures in preceding non-Nx steps, the agents will keep running and waste billable minutes
Expand Down
1 change: 1 addition & 0 deletions packages/builder/jest.config.js
Expand Up @@ -12,4 +12,5 @@ module.exports = {
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
coverageDirectory: '../../coverage/packages/builder',
coverageReporters: ['text-summary', 'lcov'],
};
1 change: 1 addition & 0 deletions packages/eslint-plugin-template/jest.config.js
Expand Up @@ -16,4 +16,5 @@ module.exports = {
testRegex: ['./tests/.+\\.test\\.ts$', './tests/.+/spec\\.ts$'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
coverageDirectory: '../../coverage/packages/eslint-plugin-template',
coverageReporters: ['text-summary', 'lcov'],
};
1 change: 1 addition & 0 deletions packages/eslint-plugin/jest.config.js
Expand Up @@ -17,4 +17,5 @@ module.exports = {
testRegex: ['./tests/.+\\.test\\.ts$', './tests/.+/spec\\.ts$'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
coverageDirectory: '../../coverage/packages/eslint-plugin',
coverageReporters: ['text-summary', 'lcov'],
};
1 change: 1 addition & 0 deletions packages/schematics/jest.config.js
Expand Up @@ -16,4 +16,5 @@ module.exports = {
testRegex: ['./tests/.+\\.test\\.ts$'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
coverageDirectory: '../../coverage/packages/schematics',
coverageReporters: ['text-summary', 'lcov'],
};
1 change: 1 addition & 0 deletions packages/template-parser/jest.config.js
Expand Up @@ -17,4 +17,5 @@ module.exports = {
testRegex: ['./tests/.+\\.test\\.ts$'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
coverageDirectory: '../../coverage/packages/template-parser',
coverageReporters: ['text-summary', 'lcov'],
};

0 comments on commit 5616d2a

Please sign in to comment.