Skip to content

add usb interface support #331

add usb interface support

add usb interface support #331

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,1.19.x,1.20.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 ./...