From fb4b3f7ed196e7a9ca6fbdd072a060c4f8fb4485 Mon Sep 17 00:00:00 2001 From: Micheal Wilkinson Date: Sat, 21 Mar 2026 13:12:42 +0000 Subject: [PATCH] chore(ci): add explicit go modules cache to validation workflows --- .gitea/workflows/pr-validation.yml | 10 ++++++++++ .gitea/workflows/push-validation.yml | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/.gitea/workflows/pr-validation.yml b/.gitea/workflows/pr-validation.yml index aa594bb..1dbfb9d 100644 --- a/.gitea/workflows/pr-validation.yml +++ b/.gitea/workflows/pr-validation.yml @@ -35,6 +35,16 @@ jobs: cache: true cache-dependency-path: go.sum + - name: Cache Go modules and build cache + uses: actions/cache@v4 + with: + path: | + ~/go/pkg/mod + ~/.cache/go-build + key: ${{ runner.os }}-go-modules-${{ hashFiles('**/go.mod', '**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go-modules- + - name: Cache security tools uses: actions/cache@v4 with: diff --git a/.gitea/workflows/push-validation.yml b/.gitea/workflows/push-validation.yml index 3d4f998..9da2da7 100644 --- a/.gitea/workflows/push-validation.yml +++ b/.gitea/workflows/push-validation.yml @@ -35,6 +35,16 @@ jobs: cache: true cache-dependency-path: go.sum + - name: Cache Go modules and build cache + uses: actions/cache@v4 + with: + path: | + ~/go/pkg/mod + ~/.cache/go-build + key: ${{ runner.os }}-go-modules-${{ hashFiles('**/go.mod', '**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go-modules- + - name: Cache security tools uses: actions/cache@v4 with: