Skip to content

Commit

Permalink
Merge pull request #231 from aztfmod/AL-workflows
Browse files Browse the repository at this point in the history
Update workflows
  • Loading branch information
arnaudlh authored Mar 9, 2023
2 parents 9d2e8c5 + fdc2b3e commit 77a262d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 23 deletions.
38 changes: 15 additions & 23 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,34 +14,26 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.17
uses: actions/setup-go@v1
with:
go-version: 1.17
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Get dependencies
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: './go.mod'
id: go

- name: Build
run: go build -o ./terraform-provider-azurecaf
run: go build -v ./...

- name: test
run: go test ./...
- name: Test
run: go test -v ./...

- name: lint
run: |
export PATH=$PATH:$(go env GOPATH)/bin
GO111MODULE=off go get github.com/bflad/tfproviderlint/cmd/tfproviderlint
tfproviderlint ./...
# To be updated
# - name: lint
# uses: golangci/golangci-lint-action@v3
# # with:
# # version: 'v3.4.0'

- name: Import GPG key
id: import_gpg
Expand All @@ -52,7 +44,7 @@ jobs:
passphrase: ${{ secrets.PASSPHRASE }}

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v4
if: startsWith(github.ref, 'refs/tags/')
with:
version: v1.10.3
Expand Down
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module github.com/aztfmod/terraform-provider-azurecaf

go 1.20

require github.com/hashicorp/terraform-plugin-sdk/v2 v2.10.1

require (
Expand Down

0 comments on commit 77a262d

Please sign in to comment.