Pass out the plan file from tf plan cmd AND pass it into the tf apply cmd #379
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: Lint and vet Go code | |
on: | |
workflow_dispatch: | |
pull_request: | |
paths: | |
- "**.go" | |
- ".github/workflows/go-vet-lint-deps.yaml" | |
jobs: | |
build: | |
name: staticcheck | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout your project with git | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# Install Go on the VM running the action. | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: " 1.23.x" | |
- name: Perform staticcheck on codebase | |
uses: dominikh/[email protected] | |
with: | |
install-go: false | |
- name: Install gofumpt | |
run: | | |
go install mvdan.cc/gofumpt@latest | |
- name: Run gofumpt command | |
run: | | |
gofumpt -l -d ./ | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version | |
version: latest | |
args: --timeout=10m |