-
Notifications
You must be signed in to change notification settings - Fork 10
43 lines (41 loc) · 1.04 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: ci
on:
workflow_dispatch:
push:
branches: ['**']
pull_request:
branches: [main]
jobs:
test:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: 16
cache: "npm"
- run: npm ci
- run: npm run lint
- uses: GabrielBB/xvfb-action@master
with:
run: npm run test -- --coverage
- uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: run-${{ matrix.os }}
parallel: true
publish:
needs: test
runs-on: ubuntu-latest
steps:
- uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true