Skip to content

Bump github.com/hashicorp/terraform-plugin-sdk/v2 from 2.30.0 to 2.31… #323

Bump github.com/hashicorp/terraform-plugin-sdk/v2 from 2.30.0 to 2.31…

Bump github.com/hashicorp/terraform-plugin-sdk/v2 from 2.30.0 to 2.31… #323

Workflow file for this run

name: Checks
on:
push:
pull_request:
jobs:
Golangci-Lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: "1.20"
- name: Install dependencies
run: |
go version
go install github.com/golangci/golangci-lint/cmd/[email protected]
- name: Run golangci-lint
run: |
golangci-lint run vultr/...
Go-Fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: "1.20"
- name: Run fmt
run: |
gofmt_files=$(gofmt -l vultr)
if [[ -n ${gofmt_files} ]]; then
echo 'gofmt needs running on the following files:'
echo "${gofmt_files}"
exit 1
fi
exit 0