configure caches
This commit is contained in:
parent
7ba2e2e82f
commit
18bdc4f54e
@ -15,6 +15,12 @@ jobs:
|
|||||||
if: ${{ vars.DEBIAN_MIRROR && vars.DEBIAN_APT_SOURCES }}
|
if: ${{ vars.DEBIAN_MIRROR && vars.DEBIAN_APT_SOURCES }}
|
||||||
- name: Setup debian environment
|
- name: Setup debian environment
|
||||||
run: apt update && apt install -y podman podman-compose nodejs
|
run: apt update && apt install -y podman podman-compose nodejs
|
||||||
|
- name: Setup cache for podman
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
/var/lib/containers
|
||||||
|
key: podman-storage
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Build container
|
- name: Build container
|
||||||
|
@ -7,6 +7,7 @@ on:
|
|||||||
- go.mod
|
- go.mod
|
||||||
- go.lock
|
- go.lock
|
||||||
- go.work
|
- go.work
|
||||||
|
- .gitea/workflows/go-test.yaml
|
||||||
env:
|
env:
|
||||||
GOPROXY: ${{ vars.GOPROXY }}
|
GOPROXY: ${{ vars.GOPROXY }}
|
||||||
|
|
||||||
@ -19,10 +20,20 @@ jobs:
|
|||||||
if: ${{ vars.DEBIAN_MIRROR && vars.DEBIAN_APT_SOURCES }}
|
if: ${{ vars.DEBIAN_MIRROR && vars.DEBIAN_APT_SOURCES }}
|
||||||
- name: Setup Debian environment
|
- name: Setup Debian environment
|
||||||
run: apt update && apt install -y nodejs
|
run: apt update && apt install -y nodejs
|
||||||
|
- name: Setup cache for golang toolchain
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
/opt/hostedtoolcache/go
|
||||||
|
/root/go/pkg/mod
|
||||||
|
/root/.cache/go-build
|
||||||
|
key: ${{ runner.os }}-golang
|
||||||
- name: Setup Golang
|
- name: Setup Golang
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: 1.24.0
|
go-version: 1.24.0
|
||||||
|
cache-dependency-path: |
|
||||||
|
go.sum
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
|
Loading…
x
Reference in New Issue
Block a user