Skip to content

Commit

Permalink
Fix CI Error (#321)
Browse files Browse the repository at this point in the history
* ci: fix ci script error
  • Loading branch information
gz65555 authored Jun 8, 2021
1 parent 0f2b5d3 commit f7adc1c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Node.js CI

on: [push]
on: [push, pull_request]

jobs:
build:
Expand All @@ -9,7 +9,7 @@ jobs:

strategy:
matrix:
node-version: [12.x]
node-version: [12.x, 15.x]

steps:
- uses: actions/checkout@v2
Expand All @@ -18,4 +18,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run ci
- run: npm run ci
- name: Upload coverage to Codecov
run: npm install codecov
run: ./bin/codecov
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"bootstrap": "npm i && lerna bootstrap",
"test": "jest",
"test-cov": "jest --coverage",
"ci": "lerna bootstrap && npm run build && npm run b:types && npm run test-cov",
"ci": "lerna bootstrap && npm run b:module && npm run b:types && npm run test-cov",
"lint": "eslint packages/*/src --ext .ts",
"watch": "cross-env NODE_ENV=development BUILD_TYPE=MODULE rollup -cw -m inline",
"watch:umd": "cross-env NODE_ENV=development BUILD_TYPE=UMD rollup -cw -m inline",
Expand Down

0 comments on commit f7adc1c

Please sign in to comment.