File tree Expand file tree Collapse file tree 3 files changed +40
-9
lines changed Expand file tree Collapse file tree 3 files changed +40
-9
lines changed Original file line number Diff line number Diff line change 25
25
- name : Run integration tests
26
26
run : make test-integration
27
27
28
- # Note: makefile stages: build/install/kind-setup/test-integration-cmd
29
- - name : Run integration tests for cmd
30
- run : make test-integration-cmd
31
-
32
28
- name : Run GoReleaser
33
29
uses : goreleaser/goreleaser-action@v6
34
30
with :
Original file line number Diff line number Diff line change
1
+ name : Lint
2
+ on :
3
+ push :
4
+ branches :
5
+ - master
6
+ - " release/**"
7
+ pull_request :
8
+ branches :
9
+ - master
10
+ - " release/**"
11
+ types :
12
+ - opened
13
+ - reopened
14
+ - synchronize
15
+ - ready_for_review
16
+ workflow_dispatch :
17
+
18
+ jobs :
19
+ lint :
20
+ if : ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
21
+ runs-on : ubuntu-22.04
22
+
23
+ steps :
24
+ - uses : actions/checkout@v4
25
+ with :
26
+ fetch-depth : 0
27
+ - uses : actions/setup-go@v5
28
+ with :
29
+ go-version-file : go.mod
30
+
31
+ - name : Install golangci-lint
32
+ if : runner.os == 'Linux'
33
+ uses : golangci/golangci-lint-action@v6
34
+ with :
35
+ version : v1.62.2
36
+ skip-cache : true
37
+
38
+ - name : Lint
39
+ if : runner.os == 'Linux'
40
+ run : make lint
Original file line number Diff line number Diff line change @@ -47,11 +47,6 @@ kind-teardown:
47
47
.PHONY : test-integration
48
48
test-integration : install kind-setup
49
49
KUBECTL_ENVSUBST_INTEGRATION_TESTS_AVAILABLE=0xcafebabe go test -v integration/* .go
50
- $(MAKE ) kind-teardown
51
-
52
- # Run integration tests for the 'main' function
53
- .PHONY : test-integration-cmd
54
- test-integration-cmd : install kind-setup
55
50
KUBECTL_ENVSUBST_INTEGRATION_TESTS_AVAILABLE=0xcafebabe go test -v cmd/app/* .go
56
51
$(MAKE ) kind-teardown
57
52
You can’t perform that action at this time.
0 commit comments