-
-
Notifications
You must be signed in to change notification settings - Fork 11
47 lines (45 loc) · 1.08 KB
/
main.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
name: Test
on:
push:
branches:
- 'master'
jobs:
lint:
name: Lint and type check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/[email protected]
with:
node-version: '20.5.0'
- name: Lint
uses: borales/actions-yarn@v4
with:
cmd: lint
- name: Build typings (type check)
uses: borales/actions-yarn@v4
with:
cmd: build
- name: Test build of documentatation
uses: borales/actions-yarn@v4
with:
cmd: docs:build
test:
name: Test and upload coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/[email protected]
with:
node-version: '20.5.0'
- name: Test and generate coverage
uses: borales/actions-yarn@v4
with:
cmd: coverage
env:
YOUTUBE_API_KEY: ${{ secrets.YOUTUBE_API_KEY }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/coverage-final.json