Skip to content

Commit

Permalink
fix(action): adjust Action env setup (#109)
Browse files Browse the repository at this point in the history
* chore: use pnpm workspaces

* chore(action): separate coverage steps
  • Loading branch information
lukeed authored May 24, 2021
1 parent 9334dfc commit f2ae0f5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,27 @@ jobs:
run: curl -L https://raw.githubusercontent.com/pnpm/self-installer/master/install.js | node

- name: Install
run: |
pnpm install
pnpm add -g nyc
run: pnpm install

- name: (coverage) Install
if: matrix.nodejs >= 14
run: pnpm add -g c8

- name: Build
run: pnpm run build

- name: Test w/ Coverage
run: nyc --include=packages pnpm test
- name: Test
if: matrix.nodejs < 14
run: pnpm test

- name: (coverage) Test
if: matrix.nodejs >= 14
run: c8 --include=packages pnpm test

- name: Report
- name: (coverage) Report
if: matrix.nodejs >= 14
run: |
nyc report --reporter=text-lcov > coverage.lcov
c8 report --reporter=text-lcov > coverage.lcov
bash <(curl -s https://codecov.io/bash)
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"url": "https://lukeed.com"
},
"scripts": {
"pretest": "lerna bootstrap",
"build": "lerna exec bundt index.js",
"test": "uvu -r esm tests -i public -i helpers"
},
Expand Down
2 changes: 2 additions & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
packages:
- 'packages/**'

0 comments on commit f2ae0f5

Please sign in to comment.