Fix prevent update (#916) #73
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.21" | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Vet | |
run: | | |
go vet ./pkg/app | |
go vet ./pkg/errors | |
go vet ./pkg/logs | |
go vet ./pkg/cache | |
go vet ./pkg/cli | |
server: | |
name: Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: "1.21" | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Run Unit Tests | |
run: | | |
go test -race ./pkg/app | |
go test -race ./pkg/errors | |
go test -race ./pkg/logs | |
go test -race ./pkg/cache | |
client: | |
name: WebAssembly Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: "1.21" | |
- 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 |