More on caching in CI.
This commit is contained in:
parent
6761f75770
commit
923979a98a
@ -7,18 +7,16 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
Linting:
|
Linting:
|
||||||
runs-on: "ubuntu-22.04"
|
runs-on: "ubuntu-22.04"
|
||||||
env:
|
|
||||||
GOCACHE: /home/container/go/buildcache
|
|
||||||
GOMODCACHE: /home/container/go/pkg
|
|
||||||
steps:
|
steps:
|
||||||
- name: "checkout source"
|
- name: "checkout source"
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: "cache go dependencies"
|
- name: "cache go dependencies"
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: /home/container/go
|
path: |
|
||||||
|
~/.cache/go-build
|
||||||
|
~/go/pkg/mod
|
||||||
key: bunker-go-cache
|
key: bunker-go-cache
|
||||||
restore_key: bunker-go-cache
|
|
||||||
- name: "lint"
|
- name: "lint"
|
||||||
uses: docker://code.pztrn.name/containers/go-toolbox:v6
|
uses: docker://code.pztrn.name/containers/go-toolbox:v6
|
||||||
with:
|
with:
|
||||||
@ -35,9 +33,10 @@ jobs:
|
|||||||
- name: "cache go dependencies"
|
- name: "cache go dependencies"
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: /home/container/go
|
path: |
|
||||||
|
~/.cache/go-build
|
||||||
|
~/go/pkg/mod
|
||||||
key: bunker-go-cache
|
key: bunker-go-cache
|
||||||
restore_key: bunker-go-cache
|
|
||||||
- name: "tests"
|
- name: "tests"
|
||||||
uses: docker://code.pztrn.name/containers/go-toolbox:v6
|
uses: docker://code.pztrn.name/containers/go-toolbox:v6
|
||||||
with:
|
with:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user