Caching and CI.
This commit is contained in:
parent
f4667a2780
commit
6761f75770
@ -7,13 +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: /root/go/
|
path: /home/container/go
|
||||||
key: bunker-go-cache
|
key: bunker-go-cache
|
||||||
restore_key: bunker-go-cache
|
restore_key: bunker-go-cache
|
||||||
- name: "lint"
|
- name: "lint"
|
||||||
@ -23,13 +26,16 @@ jobs:
|
|||||||
|
|
||||||
Tests:
|
Tests:
|
||||||
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: /root/go/
|
path: /home/container/go
|
||||||
key: bunker-go-cache
|
key: bunker-go-cache
|
||||||
restore_key: bunker-go-cache
|
restore_key: bunker-go-cache
|
||||||
- name: "tests"
|
- name: "tests"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user