when: event: - push - pull_request steps: - name: test-build image: tinygo/tinygo:latest commands: # Verify TinyGo compiler version - tinygo version # Ensure modules are resolved and tidy - go mod download - go mod verify # Copy template config for the build check if config.go doesn't exist - if [ ! -f config.go ]; then cp config.go.example config.go; fi # Compile to an ELF/binary to ensure no syntax, link, or driver errors - tinygo build -target=pico2-w -o /dev/null .