More on caching in CI.
All checks were successful
Linting and tests / Linting (push) Successful in 2m27s
Linting and tests / Tests (push) Successful in 3m16s

This commit is contained in:
Stanislav Nikitin 2025-09-11 06:04:54 +05:00
parent 6761f75770
commit 923979a98a
Signed by: pztrn
GPG Key ID: 1E944A0F0568B550

View File

@ -7,18 +7,16 @@ on:
jobs:
Linting:
runs-on: "ubuntu-22.04"
env:
GOCACHE: /home/container/go/buildcache
GOMODCACHE: /home/container/go/pkg
steps:
- name: "checkout source"
uses: actions/checkout@v4
- name: "cache go dependencies"
uses: actions/cache@v4
with:
path: /home/container/go
path: |
~/.cache/go-build
~/go/pkg/mod
key: bunker-go-cache
restore_key: bunker-go-cache
- name: "lint"
uses: docker://code.pztrn.name/containers/go-toolbox:v6
with:
@ -35,9 +33,10 @@ jobs:
- name: "cache go dependencies"
uses: actions/cache@v4
with:
path: /home/container/go
path: |
~/.cache/go-build
~/go/pkg/mod
key: bunker-go-cache
restore_key: bunker-go-cache
- name: "tests"
uses: docker://code.pztrn.name/containers/go-toolbox:v6
with: