Skip to content

Commit

Permalink
chore: Use a single coverage workflow (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S authored Feb 14, 2024
1 parent 73e1bf3 commit e12d7f2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 35 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ jobs:
uses: coverallsapp/github-action@3dfc5567390f6fa9267c0ee9c251e4c8c3f18949 # 2.2.3

- name: Upload coverage to Codecov
uses: codecov/codecov-action@e0b68c6749509c5f83f984dd99a76a1c1a231044 # v3
uses: codecov/codecov-action@e0b68c6749509c5f83f984dd99a76a1c1a231044 # v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
34 changes: 0 additions & 34 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,44 +37,10 @@ jobs:
node-version: [18.x]
os:
- windows-latest
- macos-latest

steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/install-build-test
with:
node-version: ${{ matrix.node-version }}

coverage:
permissions:
checks: write # for coverallsapp/github-action to create new checks
contents: read # for actions/checkout to fetch code

runs-on: ${{ matrix.os }}

strategy:
matrix:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node-version: [18.x]
os:
- ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup
with:
node-version: ${{ matrix.node-version }}

- run: pnpm i
- run: pnpm run build
- run: pnpm run coverage

- name: Upload coverage Coveralls
uses: coverallsapp/github-action@3dfc5567390f6fa9267c0ee9c251e4c8c3f18949 # 2.2.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Upload coverage to Codecov
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3

0 comments on commit e12d7f2

Please sign in to comment.