Skip to content

Commit 7074763

Browse files
authored
Update the CI workflow. (#86)
* Fix the CI workflow. * fix
1 parent 9a04a8e commit 7074763

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

.github/workflows/CI.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,27 @@ jobs:
7777
run: npm run -s build
7878
- name: Test
7979
run: npm run -s test:mocha
80+
81+
test-cov:
82+
name: Test and Send Coverage
83+
runs-on: ubuntu-latest
84+
steps:
85+
- name: Checkout
86+
uses: actions/checkout@v2
87+
- name: Checkout submodules
88+
run: git submodule update --init
89+
- name: Install Node.js v14
90+
uses: actions/setup-node@v1
91+
with:
92+
node-version: 14
93+
- name: Install Packages
94+
run: npm install
95+
- name: Install ESLint v7
96+
run: node scripts/ci-install-eslint 7
97+
- name: Build
98+
run: npm run -s build
99+
- name: Test
100+
run: npm run -s test:mocha
80101
- name: Send Coverage
81102
run: npm run -s codecov
82103
env:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"clean": "rimraf .nyc_output .temp coverage index.*",
5555
"codecov": "codecov",
5656
"coverage": "opener ./coverage/lcov-report/index.html",
57-
"lint": "node -e \"if(process.env.ESLINT=='5')process.exit(1)\" && eslint src test --ext .js,.ts || node -e \"if(process.env.ESLINT!='5')process.exit(1)\"",
57+
"lint": "eslint src test --ext .js,.ts",
5858
"setup": "git submodule update --init && cd test/fixtures/eslint && npm install",
5959
"pretest": "run-s build lint",
6060
"test": "npm run -s test:mocha",

0 commit comments

Comments
 (0)