bunker/.gitea/workflows/on-push.yml
Stanislav N. aka pztrn da228047bd
Some checks failed
Linting and tests / Linting (push) Failing after 5s
Linting and tests / Tests (push) Successful in 2m14s
Caching, continue...
2025-09-11 05:39:06 +05:00

39 lines
1001 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/
key: bunker-go-cache
restore_key: bunker-go-cache
- name: "lint"
uses: docker://code.pztrn.name/containers/go-toolbox:v6
with:
command: "/usr/local/bin/task lint && ls -lah /home/container"
Tests:
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/
key: bunker-go-cache
restore_key: bunker-go-cache
- name: "tests"
uses: docker://code.pztrn.name/containers/go-toolbox:v6
with:
command: "/usr/local/bin/task test"