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

30 lines
614 B
YAML
Raw Normal View History

2023-08-25 05:43:55 +00:00
name: Test
2023-08-25 05:41:13 +00:00
on:
push:
branches:
- master
pull_request:
branches:
- master
permissions:
contents: read
jobs:
2023-08-25 05:46:54 +00:00
test:
2023-08-25 05:41:13 +00:00
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 ./...