generated from deepgram/oss-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 54
55 lines (48 loc) · 997 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
49
50
51
52
53
54
55
name: CI
on:
pull_request:
branches:
- main
- next
- rc
- beta
- alpha
paths-ignore:
- "docs/**"
- "**/*.md"
- ".prettierrc"
- "**/*ignore"
push:
branches:
- main
- next
- rc
- beta
- alpha
paths-ignore:
- "docs/**"
- "**/*.md"
- ".prettierrc"
- "**/*ignore"
jobs:
test:
name: Test / OS ${{ matrix.os }} / Node ${{ matrix.node }}
strategy:
matrix:
os: [ubuntu-latest]
node: ["18"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Run tests
run: |
npm clean-install
npm run test:coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}