Skip to content

Commit

Permalink
chore: split ci to more steps (#885)
Browse files Browse the repository at this point in the history
  • Loading branch information
kurkle authored Nov 17, 2024
1 parent 8b92c04 commit e0e2e1a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ on:
- master

jobs:
build:

ci:
runs-on: ${{ matrix.os }}

strategy:
Expand All @@ -22,22 +21,33 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: 16
- run: |
npm ci
npm run build

- name: install
run: npm ci

- name: lint
run: npm run lint

- name: build
run: npm run build

- name: test
run: |
if [ "${{ runner.os }}" == "Windows" ]; then
npm test
else
xvfb-run --auto-servernum npm test
fi
shell: bash

- name: Coveralls Parallel - Chrome
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: './coverage/chrome/lcov.info'
flag-name: ${{ matrix.os }}-chrome
parallel: true

- name: Coveralls Parallel - Firefox
uses: coverallsapp/github-action@master
with:
Expand All @@ -47,7 +57,7 @@ jobs:
parallel: true

finish:
needs: build
needs: ci
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"lint-types": "eslint \"types/**/*.ts\" && tsc -p types/tests/",
"lint": "concurrently \"npm:lint-*\"",
"test": "cross-env NODE_ENV=test concurrently \"npm:test-*\"",
"test-lint": "npm run lint",
"test-karma": "karma start --auto-watch --single-run --coverage",
"test-types": "tsc -p types/tests/"
},
Expand Down

0 comments on commit e0e2e1a

Please sign in to comment.