-
-
Notifications
You must be signed in to change notification settings - Fork 403
52 lines (48 loc) · 1.23 KB
/
build.yml
File metadata and controls
52 lines (48 loc) · 1.23 KB
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
name: Build
on: [push]
jobs:
code:
name: Code Check
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "1.24"
- name: Checkout Code
uses: actions/checkout@v3
- name: Vet
run: |
go vet ./...
server:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "1.24"
- name: Checkout Code
uses: actions/checkout@v3
- name: Run Unit Tests
run: |
go test -race ./...
client:
name: WebAssembly Unit Tests
runs-on: ubuntu-22.04
steps:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "1.24"
- name: Checkout Code
uses: actions/checkout@v3
- name: Install WASM Browser Test
run: |
go install github.com/agnivade/wasmbrowsertest@latest
mv `go env GOPATH`/bin/wasmbrowsertest `go env GOPATH`/bin/go_js_wasm_exec
- name: Run Unit Tests
run: |
GOARCH=wasm GOOS=js go test ./pkg/app
GOARCH=wasm GOOS=js go test ./pkg/errors
GOARCH=wasm GOOS=js go test ./pkg/logs