Run tests #2
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: "Tests" | |
on: ["push", "pull_request"] | |
jobs: | |
test: | |
name: "Run" | |
runs-on: "ubuntu-latest" | |
strategy: | |
matrix: | |
go-version: ["1.20", "stable"] | |
steps: | |
- uses: "actions/checkout@v3" | |
with: | |
submodules: true | |
- uses: "actions/setup-go@v4" | |
with: | |
go-version: ${{ matrix.go-version }} | |
check-latest: true | |
- name: "Get dependencies" | |
run: go get ./... | |
- name: "Generate more test cases from specification" | |
run: go generate ./... | |
- name: "Run unit tests" | |
run: go test -v -cover ./... |