fix typo mistake in readme (#156) #342
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
on: [push, pull_request] | |
name: Unit Test | |
jobs: | |
test: | |
strategy: | |
matrix: | |
go-version: [1.16.x,1.17.x,1.18.x,1.19.x,1.20.x,1.21.x,1.22.x,1.23.x] | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
services: | |
httpbin: | |
image: kennethreitz/httpbin | |
ports: | |
- 80:80 | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Install chrome | |
uses: browser-actions/setup-chrome@latest | |
- name: Install dep | |
run: go install github.com/realPy/wasmbrowsertest@b16d0bd09a01194da30cd6b43ca8c4f688bebc79 | |
- name: Setup wasmexec | |
run: mv $(go env GOPATH)/bin/wasmbrowsertest $(go env GOPATH)/bin/go_js_wasm_exec | |
- name: Keep only env useful | |
run: echo "GOPATH=$(go env GOPATH) GOCACHE=$(go env GOCACHE) GOROOT=$(go env GOROOT) PATH=$(echo $PATH)" >/opt/.env | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Test | |
run: env -i $(cat /opt/.env) GOOS=js GOARCH=wasm go test ./... |