terraform-provider-woodpecker/.github/workflows/test.yml

30 lines
620 B
YAML

name: Test
on:
push:
branches:
- master
pull_request:
branches:
- master
permissions:
contents: read
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
cache: true
- run: make generate && go mod tidy && git diff --exit-code go.mod docs/ examples/
- uses: golangci/golangci-lint-action@v3
with:
version: v1.54
- run: go test -race -coverprofile=coverage.txt -covermode=atomic ./...