File tree 3 files changed +43
-1
lines changed
3 files changed +43
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ pull_request :
5
+ types : [ opened, edited ]
6
+ push :
7
+
8
+ jobs :
9
+ ci :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - name : Checkout
13
+ uses : actions/checkout@v4
14
+ with :
15
+ fetch-depth : 0
16
+
17
+ - name : Setup Go
18
+ uses : actions/setup-go@v4
19
+ with :
20
+ go-version : " 1.23.1"
21
+ cache : true
22
+
23
+ - name : Check formatting
24
+ run : |
25
+ cd gitpod-network-check
26
+ test -z "$(gofmt -l .)"
27
+
28
+ - name : Run tests
29
+ run : |
30
+ cd gitpod-network-check
31
+ go test -v ./...
32
+
33
+ - name : Build with GoReleaser
34
+ uses : goreleaser/goreleaser-action@v3
35
+ with :
36
+ distribution : goreleaser
37
+ version : v1.25.1
38
+ args : build --snapshot --clean --skip=publish
39
+ env :
40
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ builds:
14
14
ignore :
15
15
- goos : windows
16
16
goarch : arm64
17
+ flags :
18
+ - -a
17
19
ldflags :
18
20
- -s -w -extldflags=-static
19
21
binary : gitpod-network-check
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ var checkCommand = &cobra.Command{ // nolint:gochecknoglobals
62
62
63
63
ts := checks .TestSets [checks .TestsetName (testset )]
64
64
serviceEndpoints , subnetType := ts (& NetworkConfig )
65
- subnets := Filter (NetworkConfig .GetAllSubnets (), func (subnet checks.Subnet ) bool {
65
+ subnets := Filter (NetworkConfig .GetAllSubnets (), func (subnet checks.Subnet ) bool {
66
66
return subnet .Type == subnetType
67
67
})
68
68
You can’t perform that action at this time.
0 commit comments