Skip to content

Bump goreleaser/goreleaser-action from 4.4.0 to 5.0.0 #607

Bump goreleaser/goreleaser-action from 4.4.0 to 5.0.0

Bump goreleaser/goreleaser-action from 4.4.0 to 5.0.0 #607

Workflow file for this run

name: tests
on: [pull_request, push]
env:
GO111MODULE: on
jobs:
test:
strategy:
matrix:
go-version: [1.18.x, 1.19.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v3.6.0
- name: Cache go modules
uses: actions/cache@v3.3.1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }}
restore-keys: ${{ runner.os }}-go-
- name: Run make fmt
if: runner.os != 'Windows'
run: |
make fmt
git diff --exit-code; code=$?; git checkout -- .; (exit $code)
- name: Run go vet
run: go vet ./...
- name: Ensure generating accessors produces a zero diff
shell: bash
run: cd api && go run gen-accessors.go && git diff --exit-code; code=$?; git checkout -- .; (exit $code)
- name: Run make build
run: make build
- name: Run make test
run: make testacc TEST="./split/" TESTARGS='-run=TestProvider'