Skip to content

replace httpbin by local version #310

replace httpbin by local version

replace httpbin by local version #310

Workflow file for this run

on: [push, pull_request]
name: Unit Test
jobs:
test:
strategy:
matrix:
go-version: [1.16.x,1.17.x,1.18.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
container:

Check failure on line 10 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 10
image: kennethreitz/httpbin
ports:
- 80
options: --cpus 1
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 ./...