mirror of
https://github.com/bakito/adguardhome-sync.git
synced 2025-10-26 11:19:54 +00:00
test: setup cache
This commit is contained in:
parent
b77248d82d
commit
25e7aeeecb
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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user