test: setup cache
This commit is contained in:
21
.github/workflows/go.yml
vendored
21
.github/workflows/go.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user