Skip to content

(TFECO-7724) Parse and detect write only attributes (#440) #1163

(TFECO-7724) Parse and detect write only attributes (#440)

(TFECO-7724) Parse and detect write only attributes (#440) #1163

Workflow file for this run

name: ci
on:
pull_request:
branches:
- main
- pre-release
push:
branches:
- main
- pre-release
permissions:
contents: read
env:
GOPROXY: https://proxy.golang.org/
jobs:
copywrite:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- name: Checkout Repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install copywrite
uses: hashicorp/[email protected]
- name: Validate Header Compliance
run: copywrite headers --plan
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 5
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
steps:
-
name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
-
name: Unshallow
run: git fetch --prune --unshallow
-
name: Set up Go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version-file: ".go-version"
-
name: Go mod download
run: go mod download -x
-
name: Go mod verify
run: go mod verify
-
name: Run go fmt
run: go run github.com/mh-cbon/go-fmt-fail ./...
-
name: Run tests
run: go test -v -race -covermode=atomic ./...