Caching and CI.
All checks were successful
Linting and tests / Linting (push) Successful in 2m24s
Linting and tests / Tests (push) Successful in 2m12s

This commit is contained in:
Stanislav Nikitin 2025-09-11 05:57:24 +05:00
parent f4667a2780
commit 6761f75770
Signed by: pztrn
GPG Key ID: 1E944A0F0568B550

View File

@ -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"