Skip to content

Commit

Permalink
chore(ci): update reporting conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed Jan 17, 2022
1 parent b4d08a9 commit 63132d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,22 @@ jobs:
run: pnpm install

- name: (coverage) Install
if: matrix.nodejs >= 14
if: matrix.nodejs >= 16 && matrix.os == 'ubuntu-latest'
run: pnpm add -g c8

- name: Build
run: pnpm run build

- name: Test
if: matrix.nodejs < 14
if: matrix.nodejs < 16 || matrix.os != 'ubuntu-latest'
run: pnpm test

- name: (coverage) Test
if: matrix.nodejs >= 14
if: matrix.nodejs >= 16 && matrix.os == 'ubuntu-latest'
run: c8 --include=packages pnpm test

- name: (coverage) Report
if: matrix.nodejs >= 14
if: matrix.nodejs >= 16 && matrix.os == 'ubuntu-latest'
run: |
c8 report --reporter=text-lcov > coverage.lcov
bash <(curl -s https://codecov.io/bash)
Expand Down

0 comments on commit 63132d2

Please sign in to comment.