wit: add test for function name consistency within an interface #31
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
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: 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: Verify repo is unchanged | |
run: git diff --exit-code HEAD |