From baf3c3708095deb877da1271c58fe65559a4c924 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 28 Dec 2025 03:42:16 +0000 Subject: [PATCH] ci: optimize pipeline with caching and parallel execution - Enable Go modules cache explicitly for all jobs - Remove unnecessary needs: [build] from integration-test job (it was waiting for build but not using its artifact) - All 5 jobs now run in parallel for faster CI completion --- .github/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3fcfef2..7c8ad84 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,6 +20,7 @@ jobs: uses: actions/setup-go@v5 with: go-version: '1.24' + cache: true - name: Run tests run: go test -v -race -coverprofile=coverage.out ./... @@ -51,6 +52,7 @@ jobs: uses: actions/setup-go@v5 with: go-version: '1.24' + cache: true - name: golangci-lint uses: golangci/golangci-lint-action@v6 @@ -67,6 +69,7 @@ jobs: uses: actions/setup-go@v5 with: go-version: '1.24' + cache: true - name: Install govulncheck run: go install golang.org/x/vuln/cmd/govulncheck@latest @@ -84,6 +87,7 @@ jobs: uses: actions/setup-go@v5 with: go-version: '1.24' + cache: true - name: Build run: go build -v ./... @@ -91,7 +95,6 @@ jobs: integration-test: name: Integration Test runs-on: ubuntu-latest - needs: [build] steps: - uses: actions/checkout@v4 @@ -99,6 +102,7 @@ jobs: uses: actions/setup-go@v5 with: go-version: '1.24' + cache: true - name: Build binary run: go build -o raptor ./cmd/raptor