Skip to content

Commit

Permalink
Remove explicit go mod cache. actions/setup-go does it automaticall…
Browse files Browse the repository at this point in the history
…y already. (#10)
  • Loading branch information
bastjan authored Jan 25, 2024
1 parent c8d6ba1 commit 16e5456
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 28 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,5 @@ jobs:
with:
go-version: ${{ env.GO_VERSION }}

- uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run build
run: make build
7 changes: 0 additions & 7 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,5 @@ jobs:
with:
go-version: ${{ env.GO_VERSION }}

- uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run linters
run: make lint
7 changes: 0 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,6 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Login to ghcr.io
uses: docker/login-action@v3
with:
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@ jobs:
with:
go-version: ${{ env.GO_VERSION }}

- uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install expect
run: sudo apt-get -y install expect

Expand Down

0 comments on commit 16e5456

Please sign in to comment.