-
Notifications
You must be signed in to change notification settings - Fork 100
46 lines (37 loc) · 982 Bytes
/
ci.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
name: ci
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
build-and-test:
runs-on: ubuntu-latest
permissions:
contents: "read"
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup with node and yarn
uses: actions/setup-node@v3
with:
node-version: "16"
cache-dependency-path: "web/yarn.lock"
- name: Set yarn version
run: make web/set-yarn-version
# Workaround: https://github.com/actions/setup-node/issues/531#issuecomment-1819151412
env:
SKIP_YARN_COREPACK_CHECK: true
YARN_IGNORE_NODE: 1
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: "^1.18"
- name: Build web
run: make web/build
- name: Run web test
run: make web/test
- name: Build
run: make bin/linux
- name: Run Go test
run: make go/test