Skip to content

Commit

Permalink
coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Jan 25, 2020
1 parent d38e456 commit 33e680e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/dev-test.yml
Expand Up @@ -3,7 +3,7 @@ name: Dev_Test
on: [push, pull_request]

jobs:
dev_test:
test:
strategy:
fail-fast: false
matrix:
Expand All @@ -15,8 +15,14 @@ jobs:
- "13"
- "12"
- "10"
ENABLE_CODE_COVERAGE: ""
include:
# only enable coverage on the fastest job
- os: "ubuntu-latest"
node: "12"
ENABLE_CODE_COVERAGE: "true"
env:
ENABLE_CODE_COVERAGE: true
ENABLE_CODE_COVERAGE: ${{ matrix.ENABLE_CODE_COVERAGE }}
name: Node.js ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -38,6 +44,7 @@ jobs:

- name: Upload Coverage To Codecov
uses: codecov/codecov-action@v1
if: ${{ matrix.ENABLE_CODE_COVERAGE }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage/cobertura-coverage.xml
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/prod-test.yml
Expand Up @@ -29,7 +29,7 @@ jobs:
name: dist
path: dist

prod_lint:
lint:
name: Lint
runs-on: ubuntu-latest
needs: [build]
Expand All @@ -56,7 +56,7 @@ jobs:
- name: Lint Code
run: yarn test:dist

prod_test:
test:
strategy:
fail-fast: false
matrix:
Expand Down

0 comments on commit 33e680e

Please sign in to comment.