5aa9eb9426
Add relevant skeleton files from rcarmo/agentbox/skel for this repo:
- .github/workflows/ci.yml (Makefile checks + conditional Go tests)
- .github/instructions/{00-project-detection,docker-image,frontend-bun,go,python}.instructions.md
Instruction files were adapted where needed to match current workflow names
and repository layout (Go module under go/, Docker workflow filename).
Validated with make check and go test ./... .
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
38 lines
868 B
YAML
38 lines
868 B
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
# Prefer Makefile targets; this is intentionally generic.
|
|
- name: Run checks
|
|
run: |
|
|
set -e
|
|
if make -n check >/dev/null 2>&1; then
|
|
make check
|
|
elif make -n lint >/dev/null 2>&1 && make -n test >/dev/null 2>&1; then
|
|
make lint && make test
|
|
else
|
|
echo "No Makefile check/lint/test targets found; skipping."
|
|
fi
|
|
|
|
- name: Run Go tests (if present)
|
|
run: |
|
|
set -e
|
|
if [ -f go/go.mod ]; then
|
|
(cd go && go test ./...)
|
|
elif [ -f go.mod ]; then
|
|
go test ./...
|
|
else
|
|
echo "No Go module found; skipping."
|
|
fi
|