bunker/.gitea/workflows/on-push.yml
Stanislav N. aka pztrn 1d072e955f
All checks were successful
Linting and tests / Linting (push) Successful in 2m28s
Linting and tests / Tests (push) Successful in 2m14s
C. I.
2025-09-11 06:21:23 +05:00

40 lines
995 B
YAML

---
name: "Linting and tests"
run-name: "Linting and tests"
on:
- push
jobs:
Linting:
runs-on: "ubuntu-22.04"
steps:
- name: "checkout source"
uses: actions/checkout@v4
- name: "cache go dependencies"
uses: actions/cache@v4
with:
path: /home/container/go
key: bunker-go-cache
- name: "lint"
uses: docker://code.pztrn.name/containers/go-toolbox:v7
with:
command: "/usr/local/bin/task lint"
Tests:
runs-on: "ubuntu-22.04"
env:
GOCACHE: /home/container/go/buildcache
GOMODCACHE: /home/container/go/pkg
steps:
- name: "checkout source"
uses: actions/checkout@v4
- name: "cache go dependencies"
uses: actions/cache@v4
with:
path: /home/container/go
key: bunker-go-cache
- name: "tests"
uses: docker://code.pztrn.name/containers/go-toolbox:v7
with:
command: "/usr/local/bin/task test"