-
-
Notifications
You must be signed in to change notification settings - Fork 266
48 lines (41 loc) · 953 Bytes
/
ci.yml
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
44
45
46
47
48
name: CI
on:
pull_request:
paths-ignore:
- 'docs/**'
- '**/*.md'
- '.prettierrc'
- '**/*ignore'
push:
branches:
- master
- next
- rc
paths-ignore:
- 'docs/**'
- '**/*.md'
- '.prettierrc'
- '**/*ignore'
jobs:
test:
name: Test / OS ${{ matrix.os }} / Node ${{ matrix.node }}
strategy:
matrix:
os: [ubuntu-latest]
node: ['20']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Run tests
run: |
npm clean-install
npm run test:coverage
- name: Upload coverage results to Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./test/coverage/lcov.info