diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bf1651e..4e9980e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,7 +4,7 @@ jobs: test: strategy: matrix: - go-version: [1.12.x, 1.13.x, 1.14.x] + go-version: [1.14.x, 1.15.x, 1.16.x] platform: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.platform }} steps: @@ -15,4 +15,4 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - name: Test - run: go test -v ./... \ No newline at end of file + run: go test ./... \ No newline at end of file diff --git a/.github/workflows/test_js.yml b/.github/workflows/test_js.yml new file mode 100644 index 0000000..c55e6d5 --- /dev/null +++ b/.github/workflows/test_js.yml @@ -0,0 +1,27 @@ +on: [push, pull_request] +name: Test +jobs: + test: + strategy: + matrix: + go-version: [1.14.x, 1.15.x, 1.16.x] + runs-on: ubuntu-latest + steps: + - name: Install Go + uses: actions/setup-go@v1 + with: + go-version: ${{ matrix.go-version }} + + - name: Install wasmbrowsertest + run: | + go get github.com/agnivade/wasmbrowsertest + mv $HOME/go/bin/wasmbrowsertest $HOME/go/bin/go_js_wasm_exec + + - name: Checkout code + uses: actions/checkout@v2 + + - name: Test + run: go test -exec="$HOME/go/bin/go_js_wasm_exec" ./... + env: + GOOS: js + GOARCH: wasm \ No newline at end of file