-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from jerbob92/feature/emscripten-tests
Implement Emscripten tests
- Loading branch information
Showing
70 changed files
with
34,912 additions
and
2,039 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
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" ] | ||
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 |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
.idea | ||
vendor |
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
Oops, something went wrong.