File tree 4 files changed +24
-20
lines changed 4 files changed +24
-20
lines changed Original file line number Diff line number Diff line change 93
93
echo "${{ toJSON(steps.filter )}}"
94
94
95
95
lint :
96
- runs-on : ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
96
+ # golangci-lint is heavily parallelizable.
97
+ runs-on : ${{ github.repository_owner == 'coder' && 'buildjet-32vcpu-ubuntu-2204' || 'ubuntu-latest' }}
97
98
steps :
98
99
- name : Checkout
99
100
uses : actions/checkout@v3
@@ -102,7 +103,7 @@ jobs:
102
103
103
104
- uses : ./.github/actions/setup-node
104
105
105
- # Check for any typos!
106
+ # Check for any typos
106
107
- name : Check for typos
107
108
uses : crate-ci/typos@v1.14.12
108
109
with :
@@ -115,28 +116,16 @@ jobs:
115
116
cargo install typos-cli
116
117
typos -c .github/workflows/typos.toml -w"
117
118
118
- # Check for Go linting errors!
119
- - name : install golangci-lint
120
- run : go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.53.2
121
-
122
- - name : make lint
123
- run : |
124
- make --output-sync -j lint
125
119
126
- # Make sure the Helm chart is linted!
120
+ # Needed for helm chart linting
127
121
- name : Install helm
128
122
uses : azure/setup-helm@v3
129
123
with :
130
124
version : v3.9.2
131
125
132
- - name : Lint Helm chart
126
+ - name : make lint
133
127
run : |
134
- cd helm
135
- make lint
136
-
137
- # Ensure AGPL and Enterprise are separated!
138
- - name : Check for AGPL code importing Enterprise...
139
- run : ./scripts/check_enterprise_imports.sh
128
+ make --output-sync -j lint
140
129
141
130
gen :
142
131
timeout-minutes : 8
Original file line number Diff line number Diff line change @@ -200,7 +200,6 @@ issues:
200
200
max-same-issues : 0
201
201
202
202
run :
203
- concurrency : 4
204
203
skip-dirs :
205
204
- node_modules
206
205
skip-files :
Original file line number Diff line number Diff line change @@ -402,11 +402,17 @@ else
402
402
endif
403
403
.PHONY : fmt/shfmt
404
404
405
- lint : lint/shellcheck lint/go
405
+ lint : lint/shellcheck lint/go lint/ts lint/helm lint/agpl
406
406
.PHONY : lint
407
407
408
+ lint/ts :
409
+ cd site
410
+ yarn && yarn lint
411
+ .PHONY : lint/ts
412
+
408
413
lint/go :
409
414
./scripts/check_enterprise_imports.sh
415
+ go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.53.2
410
416
golangci-lint run
411
417
.PHONY : lint/go
412
418
@@ -416,6 +422,15 @@ lint/shellcheck: $(SHELL_SRC_FILES)
416
422
shellcheck --external-sources $(SHELL_SRC_FILES )
417
423
.PHONY : lint/shellcheck
418
424
425
+ lint/helm :
426
+ cd helm
427
+ make lint
428
+ .PHONY : lint/helm
429
+
430
+ lint/agpl :
431
+ ./scripts/check_enterprise_imports.sh
432
+ .PHONY : lint/agpl
433
+
419
434
# all gen targets should be added here and to gen/mark-fresh
420
435
gen : \
421
436
coderd/database/dump.sql \
Original file line number Diff line number Diff line change @@ -3,9 +3,10 @@ package cli
3
3
import (
4
4
"testing"
5
5
6
- "github.com/coder/coder/cli"
7
6
"github.com/stretchr/testify/require"
8
7
8
+ "github.com/coder/coder/cli"
9
+
9
10
"github.com/coder/coder/cli/clibase"
10
11
11
12
"github.com/coder/coder/cli/clitest"
You can’t perform that action at this time.
0 commit comments