Skip to content

Merge pull request #28 from jerbob92/dependabot/go_modules/github.com… #98

Merge pull request #28 from jerbob92/dependabot/go_modules/github.com…

Merge pull request #28 from jerbob92/dependabot/go_modules/github.com… #98

Workflow file for this run

name: Emscripten
on:
push:
branches:
- main
- development
pull_request:
branches:
- main
- development
jobs:
test-emscripten:
strategy:
fail-fast: false
matrix:
emscripten: [ "3.1.44", "3.1.45", "3.1.46", "3.1.47", "3.1.48", "3.1.49", "3.1.50" ]
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
- uses: mymindstorm/setup-emsdk@v11
with:
version: ${{ matrix.emscripten }}
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: "1.21"
- name: Recompile examples
run: |
curdir=`pwd`
for example in $(find examples -mindepth 1 -maxdepth 1 -type d)
do
cd $curdir/$example/wasm
./compile.sh
done
cd $curdir
- name: Test generation of examples
run: |
go generate ./...
- name: Run examples
run: |
curdir=`pwd`
for example in $(find examples -mindepth 1 -maxdepth 1 -type d)
do
cd $curdir/$example
go run main.go
done
cd $curdir
- name: Recompile testdata
run: |
curdir=`pwd`
cd testdata/wasm
./compile.sh
cd $curdir
- name: Test all packages
run: |
go test -timeout 30m ./... -v