smtp2shoutrrr/.forgejo/workflows/ci.yml
Felipe M. 7c588033c9
Some checks failed
ci/woodpecker/push/ci Pipeline was successful
CI / test (push) Has been cancelled
Release / release (push) Has been cancelled
ci: makefile commands to test, lint and format
2025-02-21 10:12:43 +01:00

31 lines
536 B
YAML

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.24"
- name: Format
run: |
make format
git diff --exit-code
- name: Lint
uses: golangci/golangci-lint-action@v4
with:
version: v1.56
args: --timeout=5m
- name: Test
run: make test