Browse Source

Remove redundant actions/cache from GH Actions since actions/setup-go has built-in caching

DarthSim 1 year ago
parent
commit
665e6f29ab
2 changed files with 0 additions and 14 deletions
  1. 0 7
      .github/workflows/lint.yml
  2. 0 7
      .github/workflows/test.yml

+ 0 - 7
.github/workflows/lint.yml

@@ -22,13 +22,6 @@ jobs:
       - uses: actions/setup-go@v4
         with:
           go-version: ${{ matrix.go-version }}
-      - name: Cache mods
-        uses: actions/cache@v4
-        with:
-          path: |
-            ~/.cache/go-build
-            ~/go/pkg/mod
-          key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }}
       - name: Download mods
         run: go mod download
       - name: Lint

+ 0 - 7
.github/workflows/test.yml

@@ -22,13 +22,6 @@ jobs:
       - uses: actions/setup-go@v4
         with:
           go-version: ${{ matrix.go-version }}
-      - name: Cache mods
-        uses: actions/cache@v4
-        with:
-          path: |
-            ~/.cache/go-build
-            ~/go/pkg/mod
-          key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }}
       - name: Download mods
         run: go mod download
       - name: Test