add test for unique chainID and family #310
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 - Build and test | |
on: [ push ] | |
jobs: | |
build-test: | |
name: Build and test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version-file: "go.mod" | |
cache: false | |
- name: Build | |
run: go build -v ./... | |
- name: Make sure generated files are updated | |
run: | | |
if go generate | grep -q 'no changes detected'; then | |
exit 0; | |
fi | |
exit 1; | |
- name: Test | |
run: go test -v ./... |