Skip to content

CI

CI #1133

Workflow file for this run

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