Skip to content

Commit 254282a

Browse files
committed
Group go tools together with comment
1 parent 097b573 commit 254282a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ jobs:
6464
${{ env.BASE_CACHE_KEY }}
6565
- name: Setup curl cache
6666
run: mkdir -p ${{ env.CURL_CACHE_DIR }}
67+
# Install GoCrtitic, GoSec and Staticcheck Go tools
6768
- name: Install GoCritic
6869
env:
6970
PACKAGE_URL: github.com/go-critic/go-critic/cmd/gocritic
@@ -74,6 +75,11 @@ jobs:
7475
PACKAGE_URL: github.com/securego/gosec/v2/cmd/gosec
7576
PACKAGE_VERSION: ${{ steps.setup-env.outputs.gosec-version }}
7677
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.go-staticcheck-version }}
82+
run: go install ${PACKAGE_URL}@${PACKAGE_VERSION}
7783
- name: Install Packer
7884
env:
7985
PACKER_VERSION: ${{ steps.setup-env.outputs.packer-version }}
@@ -95,11 +101,6 @@ jobs:
95101
PACKAGE_URL: mvdan.cc/sh/v3/cmd/shfmt
96102
PACKAGE_VERSION: ${{ steps.setup-env.outputs.shfmt-version }}
97103
run: go install ${PACKAGE_URL}@${PACKAGE_VERSION}
98-
- name: Install Staticcheck
99-
env:
100-
PACKAGE_URL: dominikh/staticcheck-action
101-
PACKAGE_VERSION: ${{ steps.setup-env.outputs.go-staticcheck-version }}
102-
run: go install ${PACKAGE_URL}@${PACKAGE_VERSION}
103104
- name: Install Terraform-docs
104105
env:
105106
PACKAGE_URL: github.com/terraform-docs/terraform-docs

0 commit comments

Comments
 (0)