File tree Expand file tree Collapse file tree 3 files changed +43
-1
lines changed Expand file tree Collapse file tree 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:
1414 ignore :
1515 - goos : windows
1616 goarch : arm64
17+ flags :
18+ - -a
1719 ldflags :
1820 - -s -w -extldflags=-static
1921 binary : gitpod-network-check
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ var checkCommand = &cobra.Command{ // nolint:gochecknoglobals
6262
6363 ts := checks .TestSets [checks .TestsetName (testset )]
6464 serviceEndpoints , subnetType := ts (& NetworkConfig )
65- subnets := Filter (NetworkConfig .GetAllSubnets (), func (subnet checks.Subnet ) bool {
65+ subnets := Filter (NetworkConfig .GetAllSubnets (), func (subnet checks.Subnet ) bool {
6666 return subnet .Type == subnetType
6767 })
6868
You can’t perform that action at this time.
0 commit comments