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