Files
learning/.gitea/workflows/ci.yml
Grendgi 94dd530823
Some checks failed
CI / hygiene (push) Successful in 1s
Build and Deploy / build-and-deploy (push) Successful in 27s
CI / test (push) Failing after 21s
Add learning hygiene CI guard
2026-06-15 13:30:54 +03:00

32 lines
863 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: CI
on:
push:
pull_request:
jobs:
hygiene:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: bash .gitea/scripts/hygiene-check.sh
test:
runs-on: ubuntu-latest
needs: hygiene
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- run: go build ./...
- run: go test ./...
# Линтер — отдельным шагом чтобы test/build падали с понятным diff'ом
# даже если lint warning'ов много. continue-on-error пока не ставим:
# код базы небольшой, ожидаем zero warnings.
- uses: golangci/golangci-lint-action@v7
with:
version: v2.4
args: --config .golangci.yml ./...