@@ -17,20 +17,20 @@ jobs:
1717 uses : actions/checkout@v4.2.2
1818 with :
1919 fetch-depth : 0
20-
20+
2121 - name : Set up Go
2222 uses : actions/setup-go@v5
2323 with :
2424 go-version : ' 1.24'
2525 check-latest : true
2626 cache : true
27-
27+
2828 - name : Lint
2929 uses : golangci/golangci-lint-action@v8
3030 with :
3131 version : latest
3232 args : --timeout=5m
33-
33+
3434 test :
3535 name : Test
3636 runs-on : ubuntu-latest
@@ -39,27 +39,27 @@ jobs:
3939 uses : actions/checkout@v4.2.2
4040 with :
4141 fetch-depth : 0
42-
42+
4343 - name : Set up Go
4444 uses : actions/setup-go@v5
4545 with :
4646 go-version : ' 1.24'
4747 check-latest : true
4848 cache : true
49-
49+
5050 - name : Install dependencies
5151 run : go mod download
52-
52+
5353 - name : Run tests with coverage
5454 run : go test -race -coverprofile=coverage.txt -covermode=atomic ./...
5555 continue-on-error : true
56-
56+
5757 - name : Upload coverage to Codecov
5858 uses : codecov/codecov-action@v5
5959 with :
6060 file : ./coverage.txt
6161 fail_ci_if_error : false
62-
62+
6363 - name : Archive code coverage results
6464 uses : actions/upload-artifact@v4
6565 with :
@@ -76,21 +76,21 @@ jobs:
7676 uses : actions/checkout@v4.2.2
7777 with :
7878 fetch-depth : 0
79-
79+
8080 - name : Set up Go
8181 uses : actions/setup-go@v5
8282 with :
8383 go-version : ' 1.24'
8484 check-latest : true
8585 cache : true
86-
86+
8787 - name : Build binary
8888 run : |
89- go build -v -ldflags="-X github.com/Azure/mcp-kubernetes/internal /version.GitCommit=$(git rev-parse HEAD) -X github.com/Azure/mcp-kubernetes/internal /version.BuildMetadata=$(date +%Y%m%d)" -o mcp-kubernetes ./cmd/mcp-kubernetes
90-
89+ go build -v -ldflags="-X github.com/Azure/mcp-kubernetes/pkg /version.GitCommit=$(git rev-parse HEAD) -X github.com/Azure/mcp-kubernetes/pkg /version.BuildMetadata=$(date +%Y%m%d)" -o mcp-kubernetes ./cmd/mcp-kubernetes
90+
9191 - name : Build Docker image
9292 run : docker build -t mcp-kubernetes:test --build-arg VERSION=$(git describe --tags --always --dirty | cut -c2-),GIT_COMMIT=$(git rev-parse HEAD),BUILD_DATE=$(date +%Y%m%d),GIT_TREE_STATE=$(if git diff --quiet; then echo "clean"; else echo "dirty"; fi) .
93-
93+
9494 - name : Check Docker image
9595 run : |
9696 docker images mcp-kubernetes:test
@@ -104,7 +104,7 @@ jobs:
104104 uses : actions/checkout@v4.2.2
105105 with :
106106 fetch-depth : 0
107-
107+
108108 - name : Run Gosec Security Scanner
109109 uses : securego/gosec@master
110110 with :
0 commit comments