fix bot: scenario rejoin #83
Workflow file for this run
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: WSNet2 dashboard ci | |
on: | |
pull_request: | |
branches: [ main ] | |
paths: | |
- '.github/workflows/wsnet2-dashboard.yml' | |
- 'wsnet2-dashboard/**' | |
- 'server/**' | |
jobs: | |
C: | |
runs-on: "ubuntu-latest" | |
outputs: | |
GO: "go1.19.13" | |
GOPHERJS_VER: "v1.19.0-beta1" | |
steps: | |
- run: echo 'Set Constants' | |
gopherjs: | |
needs: [ C ] | |
runs-on: "ubuntu-latest" | |
defaults: | |
run: | |
working-directory: wsnet2-dashboard/backend/go-binary | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version-file: "server/go.mod" | |
cache: true | |
cache-dependency-path: "server/go.sum" | |
- uses: arduino/setup-protoc@v2 | |
with: | |
version: '24.x' | |
- run: make -C ../../../server generate | |
- run: go install golang.org/dl/${{ needs.C.outputs.GO }}@latest && ${{ needs.C.outputs.GO }} download | |
- run: cd ../../../server && GOARCH=386 go test ./binary | |
- run: go install github.com/gopherjs/gopherjs@${{ needs.C.outputs.GOPHERJS_VER }} | |
- run: GOPHERJS_GOROOT="$(${{ needs.C.outputs.GO }} env GOROOT)" gopherjs build |