Merge pull request #80 from go-git/dependabot/github_actions/github/c… #186
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: Test JS | |
permissions: {} | |
jobs: | |
test: | |
strategy: | |
matrix: | |
go-version: [1.21.x,1.22.x] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Install wasmbrowsertest | |
run: | | |
go install github.com/agnivade/wasmbrowsertest@latest | |
mv $HOME/go/bin/wasmbrowsertest $HOME/go/bin/go_js_wasm_exec | |
- name: Test | |
run: go test -exec="$HOME/go/bin/go_js_wasm_exec" ./... | |
env: | |
GOOS: js | |
GOARCH: wasm |