-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (47 loc) · 1.38 KB
/
build.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
56
57
58
name: Build
on:
push:
branches:
- master
pull_request:
jobs:
build:
strategy:
matrix:
os: [ ubuntu-latest ]
node: [ lts/* ]
runs-on: ${{ matrix.os }}
name: OS ${{ matrix.os }} - Node ${{ matrix.node }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
- name: Build all modules
run: yarn build
- name: Lint files
run: yarn lint
- name: Run tests
run: yarn test
- name: Generate HTML documentation from TSDoc
if: ${{ github.ref == 'refs/heads/master' && github.event_name == 'push' }}
run: yarn docs:generate
- name: Publish generated documentation to GitHub Pages
if: ${{ github.ref == 'refs/heads/master' && github.event_name == 'push' }}
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs
clean: true
single-commit: true
- name: Publish test code coverage report
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage/**/coverage-final.json