-
-
Notifications
You must be signed in to change notification settings - Fork 3
53 lines (40 loc) · 1.11 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
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
name: "build"
on:
push:
branches:
- main
jobs:
build:
name: "build"
runs-on: ubuntu-latest
steps:
- name: "checkout sources"
uses: actions/checkout@v3
- name: "install dependencies"
run: npm install
- name: "run eslint"
run: npm run lint
- name: "run mocha tests (with coverage)"
run: npm run test-with-coverage
- name: "build"
run: npm run build
- name: "build-src"
run: npm run build-src
- name: "send code coverage report to codecov.io"
uses: codecov/codecov-action@v3
with:
directory: ./.build/coverage/
- name: "build docs"
run: npm run jsdoc
- name: "publish docs to gh-pages"
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: doc
clean: true
- name: "upload artifacts"
uses: actions/upload-artifact@v3
with:
name: js-qrcode-${{ github.sha }}
path: ./dist