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
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '>=1.19.0' # Runs on v1.19 and all versions after | |
- name: Verify Dependencies | |
run: | | |
go mod tidy | |
go mod download | |
go mod verify | |
# Run Go tests in the /tests directory | |
- name: Run Go tests | |
run: go test -v -count=1 -race ./tests/... |