Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix codecov on ci #795

Merged
merged 1 commit into from
Jun 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 9 additions & 3 deletions .github/workflows/node.js.yml
Expand Up @@ -7,7 +7,7 @@ on:
push:
branches:
- master
- "release/**"
- "release/**"
pull_request:
branches:
- "**"
Expand Down Expand Up @@ -39,7 +39,7 @@ jobs:
node-version: ${{ matrix.node-version }}

- name: Install npm dependencies
run: yarn --frozen-lockfile && yarn add -W codecov
run: yarn --frozen-lockfile

- name: Compile TypeScript files
run: npm run compile
Expand All @@ -48,4 +48,10 @@ jobs:
run: npm run lint

- name: Run tests
run: npm run testonly:cov -- --no-cache --colors && ./node_modules/.bin/codecov
run: npm run testonly:cov -- --colors

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
if: ${{ matrix.os == 'ubuntu-latest' && matrix.node-version == 12 }}
with:
fail_ci_if_error: true
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -24,8 +24,8 @@
"publish": "lerna publish",
"prepublishOnly": "yarn clean && yarn && yarn test",
"test": "yarn compile && yarn lint && yarn testonly",
"testonly": "jest --detectOpenHandles",
"testonly:cov": "jest --coverage --runInBand --detectOpenHandles",
"testonly": "jest",
"testonly:cov": "jest --coverage",
"testonly:watch": "jest --watch",
"version": "cp README.md packages/bottender"
},
Expand Down