Skip to content

Commit

Permalink
fix: Updated to go v1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
willguibr committed Nov 20, 2023
1 parent 7d2dc65 commit f5d45bb
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 14 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19
go-version: "1.20"

- name: Import GPG key
id: import_gpg
uses: paultyng/[email protected]
env:
uses: crazy-max/ghaction-import-gpg@v6
# These secrets will need to be configured for the repository:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
PASSPHRASE: ${{ secrets.PASSPHRASE }}
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}

- name: Run GoReleaser
uses: goreleaser/[email protected]
Expand Down
36 changes: 28 additions & 8 deletions .github/workflows/reuse-zia-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,39 @@ jobs:
environment: ${{ inputs.environment }}
strategy:
matrix:
go-version: [1.19]
go-version: [1.20]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
- name: Checkout
uses: actions/checkout@v4
- uses: actions/cache@v3

- name: Setup Go
uses: actions/setup-go@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go${{ matrix.go-version }}-${{ hashFiles('**/go.mod') }}-${{ hashFiles('**/go.sum') }}
go-version: "1.20"

- name: Setup Go Tools
run: make tools

- name: Download Go Dependencies
run: |
go mod tidy && go mod vendor
- name: Setup Go Tools
run: make tools

- name: Check Formatting
run: make fmtcheck

- name: Vet Code
run: make vet

- name: Lint Code
run: make lint

- name: Check Build
run: make build

- name: Run tests with retry
uses: nick-invision/retry@v2
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/zscaler/terraform-provider-zia/v2

go 1.18
go 1.20

require (
github.com/biter777/countries v1.7.1
Expand Down

0 comments on commit f5d45bb

Please sign in to comment.