Skip to content

Commit

Permalink
github action: update versions and support js testing
Browse files Browse the repository at this point in the history
  • Loading branch information
mcuadros committed Apr 21, 2021
1 parent 8d1f328 commit 43a34ba
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -15,4 +15,4 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: go test -v ./...
run: go test ./...
27 changes: 27 additions & 0 deletions .github/workflows/test_js.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 43a34ba

Please sign in to comment.