Skip to content

Commit

Permalink
ci: fix Codecov upload (#1455)
Browse files Browse the repository at this point in the history
* ci: fix Codecov upload

* Update coverage.yml

* ci: remove node 10

* ci: Adjust the test matrix
  • Loading branch information
Jason3S committed Jul 25, 2021
1 parent 1765d7a commit eb585c2
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 6 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
uses: actions/setup-node@v2.3.0

- run: npm ci

- run: npm run coverage

- name: Upload coverage Coveralls
Expand All @@ -25,7 +24,9 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./lcov.info

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2.0.2
with:
directory: ./packages/*/coverage/
# Do not upload to Codecov it only supports 1 comparison branch
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v2.0.2
# with:
# directory: "."
# files: ./lcov.info
29 changes: 28 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- cspell4

jobs:
test:
test-node-lts:
runs-on: ${{ matrix.os }}

strategy:
Expand All @@ -19,6 +19,33 @@ jobs:

os:
- ubuntu-latest

steps:
- uses: actions/checkout@v2.3.4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2.3.0
with:
node-version: ${{ matrix.node-version }}

- run: npm ci
- run: npm test
- run: node ./bin.js trace test
- run: node ./bin.js "**/{*.ts,*.md}"

# Ensure the repository is clean after build & test
- run: git --no-pager diff --compact-summary --exit-code

test-node-latest:
runs-on: ${{ matrix.os }}

strategy:
matrix:
node-version:
- 16.x

os:
- ubuntu-latest
- windows-latest
- macos-latest

Expand Down

0 comments on commit eb585c2

Please sign in to comment.