Skip to content

Commit

Permalink
Cache tools with go version (#2755)
Browse files Browse the repository at this point in the history
* Cache tools with go version

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>

* Fix

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>

---------

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
  • Loading branch information
pavolloffay authored Mar 12, 2024
1 parent 3aaa6cb commit eaf998f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/continuous-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@ jobs:

- name: Set up Go
uses: actions/setup-go@v5
id: setup-go
with:
go-version: "~1.21.1"

- name: Cache tools
uses: actions/cache@v4
with:
path: bin
key: ${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Makefile') }}
key: ${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Makefile') }}-${{ steps.setup-go.outputs.go-version }}

- name: Install tools
run: make install-tools
Expand All @@ -49,9 +50,10 @@ jobs:

- name: Cache tools
uses: actions/cache@v4
id: setup-go
with:
path: bin
key: ${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Makefile') }}
key: ${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Makefile') }}-${{ steps.setup-go.outputs.go-version }}

- name: Install tools
run: make install-tools
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,14 @@ jobs:
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
id: setup-go
with:
go-version: "~1.21.3"
- name: Cache tools
uses: actions/cache@v4
with:
path: bin
key: ${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Makefile') }}
key: ${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Makefile') }}-${{ steps.setup-go.outputs.go-version }}
- name: Install chainsaw
uses: kyverno/action-install-chainsaw@v0.1.8
- name: Install tools
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/scorecard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:

- name: Set up Go
uses: actions/setup-go@v5
id: setup-go
with:
go-version: "~1.21.1"

Expand All @@ -34,7 +35,7 @@ jobs:
uses: actions/cache@v4
with:
path: bin
key: ${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Makefile') }}
key: ${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Makefile') }}-${{ steps.setup-go.outputs.go-version }}

- name: Install tools
run: make install-tools
Expand Down

0 comments on commit eaf998f

Please sign in to comment.