diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ec321dc..286fe30 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -7,7 +7,24 @@ on: branches: [ master ] jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + go: + - "1.18" + - "1.19" + - "1.20" + steps: + - uses: actions/checkout@v3 + + - name: Set up Go (${{ matrix.go }} + uses: actions/setup-go@v4 + with: + go-version: ${{ matrix.go }} + - name: Build (${{ matrix.go }}) + run: go build ./... build-and-test: runs-on: ubuntu-latest strategy: diff --git a/go.mod b/go.mod index 3b77354..d8954fb 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/cockroachdb/errors -go 1.20 +go 1.19 require ( github.com/cockroachdb/datadriven v1.0.2