sabisan/.gitea/workflows/ci.yml
V 3abece6f4b
Some checks failed
Publish / Test, build, and push image (push) Failing after 25s
Use Go container for Gitea workflows
2026-05-16 21:33:25 +01:00

32 lines
559 B
YAML

name: CI
on:
push:
branches-ignore:
- main
jobs:
lint-test:
name: Lint and test
runs-on: ubuntu-latest
container:
image: golang:1.24-bookworm
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check formatting
run: |
files="$(gofmt -l .)"
if [ -n "$files" ]; then
echo "The following files need gofmt:"
echo "$files"
exit 1
fi
- name: Vet
run: go vet ./...
- name: Test
run: go test ./...