From 8d4e99be1a7e3ec32f2adc4e92347b3db6e7f509 Mon Sep 17 00:00:00 2001 From: Steve Dudenhoeffer Date: Sat, 23 May 2026 23:28:20 -0400 Subject: [PATCH] ci: optimize workflow by merging jobs and adding module cache Co-Authored-By: Claude Sonnet 4.6 --- .gitea/workflows/ci.yaml | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 5bb613c..818e198 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -7,8 +7,8 @@ on: branches: ["*"] jobs: - v2-module: - name: V2 Module + ci: + name: Build, Test & Lint runs-on: ubuntu-latest defaults: run: @@ -18,7 +18,8 @@ jobs: - uses: actions/setup-go@v5 with: - go-version: "1.24" + go-version-file: v2/go.mod + cache-dependency-path: v2/go.sum - name: Download dependencies run: go mod download @@ -32,19 +33,6 @@ jobs: - name: Test run: go test -race -count=1 ./... - lint: - name: Lint - runs-on: ubuntu-latest - defaults: - run: - working-directory: v2 - steps: - - uses: actions/checkout@v4 - - - uses: actions/setup-go@v5 - with: - go-version: "1.24" - - name: Check v2 module tidiness run: | go mod tidy