Skip to content

Commit e0e2e1a

Browse files
authored
chore: split ci to more steps (#885)
1 parent 8b92c04 commit e0e2e1a

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ on:
77
- master
88

99
jobs:
10-
build:
11-
10+
ci:
1211
runs-on: ${{ matrix.os }}
1312

1413
strategy:
@@ -22,22 +21,33 @@ jobs:
2221
uses: actions/setup-node@v2
2322
with:
2423
node-version: 16
25-
- run: |
26-
npm ci
27-
npm run build
24+
25+
- name: install
26+
run: npm ci
27+
28+
- name: lint
29+
run: npm run lint
30+
31+
- name: build
32+
run: npm run build
33+
34+
- name: test
35+
run: |
2836
if [ "${{ runner.os }}" == "Windows" ]; then
2937
npm test
3038
else
3139
xvfb-run --auto-servernum npm test
3240
fi
3341
shell: bash
42+
3443
- name: Coveralls Parallel - Chrome
3544
uses: coverallsapp/github-action@master
3645
with:
3746
github-token: ${{ secrets.github_token }}
3847
path-to-lcov: './coverage/chrome/lcov.info'
3948
flag-name: ${{ matrix.os }}-chrome
4049
parallel: true
50+
4151
- name: Coveralls Parallel - Firefox
4252
uses: coverallsapp/github-action@master
4353
with:
@@ -47,7 +57,7 @@ jobs:
4757
parallel: true
4858

4959
finish:
50-
needs: build
60+
needs: ci
5161
runs-on: ubuntu-latest
5262
steps:
5363
- name: Coveralls Finished

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
"lint-types": "eslint \"types/**/*.ts\" && tsc -p types/tests/",
2727
"lint": "concurrently \"npm:lint-*\"",
2828
"test": "cross-env NODE_ENV=test concurrently \"npm:test-*\"",
29-
"test-lint": "npm run lint",
3029
"test-karma": "karma start --auto-watch --single-run --coverage",
3130
"test-types": "tsc -p types/tests/"
3231
},

0 commit comments

Comments
 (0)