Skip to content

Commit a8af336

Browse files
committed
Move go packages install to separate section
1 parent ddbf6f7 commit a8af336

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -64,22 +64,6 @@ jobs:
6464
${{ env.BASE_CACHE_KEY }}
6565
- name: Setup curl cache
6666
run: mkdir -p ${{ env.CURL_CACHE_DIR }}
67-
# Install go-critic, GoSec and staticcheck Go tools
68-
- name: Install go-critic
69-
env:
70-
PACKAGE_URL: github.com/go-critic/go-critic/cmd/gocritic
71-
PACKAGE_VERSION: ${{ steps.setup-env.outputs.go-critic-version }}
72-
run: go install ${PACKAGE_URL}@${PACKAGE_VERSION}
73-
- name: Install GoSec
74-
env:
75-
PACKAGE_URL: github.com/securego/gosec/v2/cmd/gosec
76-
PACKAGE_VERSION: ${{ steps.setup-env.outputs.gosec-version }}
77-
run: go install ${PACKAGE_URL}@${PACKAGE_VERSION}
78-
- name: Install staticcheck
79-
env:
80-
PACKAGE_URL: dominikh/staticcheck-action
81-
PACKAGE_VERSION: ${{ steps.setup-env.outputs.staticcheck-version }}
82-
run: go install ${PACKAGE_URL}@${PACKAGE_VERSION}
8367
- name: Install Packer
8468
env:
8569
PACKER_VERSION: ${{ steps.setup-env.outputs.packer-version }}
@@ -96,6 +80,22 @@ jobs:
9680
- uses: hashicorp/setup-terraform@v2
9781
with:
9882
terraform_version: ${{ steps.setup-env.outputs.terraform-version }}
83+
# Begin Go packages install below
84+
- name: Install GoCritic
85+
env:
86+
PACKAGE_URL: github.com/go-critic/go-critic/cmd/gocritic
87+
PACKAGE_VERSION: ${{ steps.setup-env.outputs.go-critic-version }}
88+
run: go install ${PACKAGE_URL}@${PACKAGE_VERSION}
89+
- name: Install GoSec
90+
env:
91+
PACKAGE_URL: github.com/securego/gosec/v2/cmd/gosec
92+
PACKAGE_VERSION: ${{ steps.setup-env.outputs.gosec-version }}
93+
run: go install ${PACKAGE_URL}@${PACKAGE_VERSION}
94+
- name: Install Staticcheck
95+
env:
96+
PACKAGE_URL: dominikh/staticcheck-action
97+
PACKAGE_VERSION: ${{ steps.setup-env.outputs.go-staticcheck-version }}
98+
run: go install ${PACKAGE_URL}@${PACKAGE_VERSION}
9999
- name: Install shfmt
100100
env:
101101
PACKAGE_URL: mvdan.cc/sh/v3/cmd/shfmt

0 commit comments

Comments
 (0)