-
Notifications
You must be signed in to change notification settings - Fork 5
59 lines (48 loc) · 1.12 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
59
name: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Bootstrap
run: |
go version
corepack enable
- name: Vendor
run: |
make vendor
yarn config set network-timeout 120000 -g
make -C identifier vendor
- name: Lint
uses: golangci/golangci-lint-action@v2
with:
version: latest
args: --timeout=2m
skip-pkg-cache: true
skip-build-cache: true
skip-go-installation: true
only-new-issues: true
- name: Build
run: |
make DATE=reproducible
./bin/licod version && sha256sum ./bin/licod
- name: Test
run: make test
- name: Dist
run: |
test -z "$(git diff --shortstat 2>/dev/null |tail -n1)" && echo "Clean check passed."
make check
make dist