Change language ID to OpenTofu #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- 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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- | |
name: Unshallow | |
run: git fetch --prune --unshallow | |
- | |
name: Set up Go | |
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 | |
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 ./... |