Skip to content

WIT resource support #109

WIT resource support

WIT resource support #109

Workflow file for this run

name: Go
on:
push:
branches:
- main
pull_request:
jobs:
test:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Go
uses: actions/[email protected]
with:
go-version-file: go.mod
check-latest: true
- name: Set up TinyGo
uses: acifani/[email protected]
with:
tinygo-version: "0.30.0"
- name: Set up Wasmtime
uses: bytecodealliance/actions/wasmtime/[email protected]
with:
version: "v13.0.0"
- name: Vet Go code
run: go vet ./...
- name: Test Go code
run: go test -v -race ./...
- name: Test Go without cgo
env:
CGO_ENABLED: 0
run: go test -v ./...
- name: Test with TinyGo
run: tinygo test -v ./...
- name: Test with TinyGo + WASI
run: tinygo test -v -target=wasi -stack-size=64KB ./...
- name: Verify repo is unchanged
run: git diff --exit-code HEAD