From 3db1be068795ac559814234f2f67cb72529be983 Mon Sep 17 00:00:00 2001 From: 9seconds Date: Thu, 12 Mar 2026 22:13:17 +0100 Subject: [PATCH] Use cache to speed up jobs --- .github/workflows/ci.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 262be17..0161e01 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -48,6 +48,16 @@ jobs: - uses: jdx/mise-action@v3 name: Install mise + - name: Cache Go modules and build + uses: actions/cache@v5 + with: + path: | + ~/go/pkg/mod + ~/.cache/go-build + key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }} + restore-keys: | + ${{ runner.os }}-go- + - name: Run tests run: mise tasks run covtest @@ -69,6 +79,16 @@ jobs: - uses: jdx/mise-action@v3 name: Install mise + - name: Cache Go modules and build + uses: actions/cache@v5 + with: + path: | + ~/go/pkg/mod + ~/.cache/go-build + key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }} + restore-keys: | + ${{ runner.os }}-go- + - name: Run fuzzing run: mise tasks run 'test:fuzz:*' @@ -86,6 +106,16 @@ jobs: - uses: jdx/mise-action@v3 name: Install mise + - name: Cache Go modules and build + uses: actions/cache@v5 + with: + path: | + ~/go/pkg/mod + ~/.cache/go-build + key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }} + restore-keys: | + ${{ runner.os }}-go- + - name: Run linter run: mise tasks run lint