This repository has been archived by the owner on Jan 31, 2024. It is now read-only.
.github/workflows/go-test.yml #282
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: | |
pull_request: | |
schedule: | |
- cron: '0 3 * * *' # every day at 3am | |
jobs: | |
gotest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: '1.20.x' | |
- name: Install dependencies | |
run: go build | |
- name: Run tests | |
run: go test -v | |
- name: Run tests with race detector | |
run: go test -v -race |