test: setup cache

This commit is contained in:
bakito
2025-10-25 21:43:15 +02:00
parent b77248d82d
commit 25e7aeeecb

View File

@@ -22,6 +22,13 @@ jobs:
with:
go-version-file: "go.mod"
- 'name': 'Set up tools cache'
'uses': 'actions/cache@v4'
'with':
'path': "${{ github.workspace }}/bin"
'key': "${{ runner.os }}-${{ github.job }}-tools-${{ hashFiles('.toolbox.mk') }}"
'restore-keys': '${{ runner.os }}-${{ github.job }}-tools-'
- name: Lint
run: make lint
@@ -42,6 +49,13 @@ jobs:
with:
go-version-file: "go.mod"
- 'name': 'Set up tools cache'
'uses': 'actions/cache@v4'
'with':
'path': "${{ github.workspace }}/bin"
'key': "${{ runner.os }}-${{ github.job }}-tools-${{ hashFiles('.toolbox.mk') }}"
'restore-keys': '${{ runner.os }}-${{ github.job }}-tools-'
- name: Model
run: make model
@@ -68,5 +82,12 @@ jobs:
with:
go-version-file: "go.mod"
- 'name': 'Set up tools cache'
'uses': 'actions/cache@v4'
'with':
'path': "${{ github.workspace }}/bin"
'key': "${{ runner.os }}-${{ github.job }}-tools-${{ hashFiles('.toolbox.mk') }}"
'restore-keys': '${{ runner.os }}-${{ github.job }}-tools-'
- name: Run GoReleaser
run: make test-release