Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(action): adjust Action env setup #109

Merged
merged 2 commits into from
May 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/**'