-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(ci.yml): added codecov and updated CI script
- Loading branch information
Showing
3 changed files
with
47 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Use Node.js latest | ||
uses: actions/setup-node@v2-beta | ||
with: | ||
node-version: "*" | ||
- run: npm install | ||
- run: npm run build:umd | ||
|
||
lint: | ||
name: lint | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Use Node.js latest | ||
uses: actions/setup-node@v2-beta | ||
with: | ||
node-version: "15" | ||
- name: Run ESLint | ||
run: npm run lint | ||
|
||
test-coverage: | ||
name: Test on Node.js Latest | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Use Node.js latest | ||
uses: actions/setup-node@v2-beta | ||
with: | ||
node-version: "15" | ||
- name: Build coverage | ||
run: npm run test:coverage | ||
- name: Run codecov | ||
run: node ./node_modules/.bin/codecov |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters