naco-api/.forgejo/workflows/test.yaml
Nacorid 3fcdb9b88c
Some checks failed
Test Every Endpoint on Base Sepolia / test_endpoints (push) Failing after 5m11s
CI Go Verification / build_and_test (push) Successful in 1m56s
fix(CI): No CD, yet
2026-09-13 22:58:13 +00:00

43 lines
No EOL
891 B
YAML

name: CI Go Verification
on:
push:
branches: [ main, dev, ai-main ]
pull_request:
branches: [ main, dev ]
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build_and_test:
runs-on: node20
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.25'
cache: true
- name: Install dependencies
run: go mod download
- name: Check code formatting
run: |
if [ -n "$(gofmt -l .)" ]; then
echo "Code is not formatted correctly. Run 'gofmt -w .'"
exit 1
fi
- name: Vet
run: go vet ./...
- name: Build Application
run: go build -v ./...
- name: Run Tests
run: go test -v -race -cover ./...