Skip to content

Commit

Permalink
ci(ci.yml): added codecov and updated CI script
Browse files Browse the repository at this point in the history
  • Loading branch information
thkruz committed Jan 13, 2021
1 parent 860718c commit bc024c5
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 31 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
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
31 changes: 0 additions & 31 deletions .github/workflows/node.js.yml

This file was deleted.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"@typescript-eslint/parser": "^4.13.0",
"babel-eslint": "^10.1.0",
"babel-loader": "^8.2.2",
"codecov": "^3.8.1",
"commitizen": "^4.2.2",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^7.9.0",
Expand Down

0 comments on commit bc024c5

Please sign in to comment.