-
Notifications
You must be signed in to change notification settings - Fork 118
50 lines (47 loc) · 1.23 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
name: build
on: [push, pull_request]
jobs:
go:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: "^1.16.6"
- run: go test -v ./go/...
js-wbn:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16, 18, 20]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm --prefix ./js/bundle ci
- run: npm --prefix ./js/bundle run build
- run: npm --prefix ./js/bundle test
js-wbn-sign:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16, 18, 20]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm --prefix ./js/sign ci
- run: npm --prefix ./js/sign run build
- run: npm --prefix ./js/sign test
prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: creyD/[email protected]
with:
prettier_options: --write **/*.{js,ts}
only_changed: True
dry: True
prettier_version: 2.7.1