CI #1133
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: CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
schedule: | |
- cron: '0 */12 * * *' | |
jobs: | |
build-test: | |
name: "Build & Test" | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
go: [ '1.20', '1.19' ] | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v3 | |
- name: "Setup Go ${{ matrix.go }}" | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: "Download Deps" | |
run: go mod download -x | |
- name: "Check go.mod" | |
run: | | |
go mod tidy -v | |
git diff --name-only --exit-code go.mod || ( git diff && echo "Run go tidy to update go.mod" && false ) | |
- name: "Build" | |
run: make build | |
- name: "Test" | |
run: make test |