Merge pull request #964 from ghmj2417/workflow_trigger #1096
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: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout code | |
uses: actions/checkout@v2 | |
- | |
name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: "1.20" | |
- | |
name: Install cookie | |
run: scripts/gogetcookie.sh | |
- | |
name: Run tests | |
env: | |
GOFLAGS: "-mod=vendor" | |
run: | | |
make test | |
make vet |