This commit is contained in:
idotalk 2026-06-20 12:28:31 +03:00
commit a22c4e0987

View file

@ -10,13 +10,13 @@ on:
jobs: jobs:
lint: lint:
name: Lint name: Lint
runs-on: self-hosted-ghr runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
submodules: false submodules: false
# Cache build tools to avoid downloading them each time # Kept your custom cache for general build tools if needed
- uses: actions/cache@v4 - uses: actions/cache@v4
with: with:
path: build/cache path: build/cache
@ -26,7 +26,7 @@ jobs:
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
go-version: 1.24 go-version: 1.24
cache: false cache: true # Automatically handles Go module and build caching
- name: Run linters - name: Run linters
run: | run: |
@ -37,7 +37,7 @@ jobs:
test: test:
name: Test name: Test
needs: lint needs: lint
runs-on: self-hosted-ghr runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
go: go:
@ -52,7 +52,7 @@ jobs:
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
go-version: ${{ matrix.go }} go-version: ${{ matrix.go }}
cache: false cache: true # Speeds up matrix testing by caching modules across runs
- name: Run tests - name: Run tests
run: go test ./... run: go test ./...