ci: add cache

This commit is contained in:
Максим Слипенко 2024-12-26 17:02:44 +03:00
parent 904a9f4a63
commit eb0483734e

View file

@ -20,6 +20,16 @@ jobs:
with: with:
go-version: '1.23.3' go-version: '1.23.3'
- name: Setup cache
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-golang-
- name: Run Format Check - name: Run Format Check
run: | run: |
make format make format
@ -36,6 +46,16 @@ jobs:
with: with:
go-version: '1.23.3' go-version: '1.23.3'
- name: Setup cache
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-golang-
- name: Run Tests - name: Run Tests
run: | run: |
make test-coverage make test-coverage