chore: incorporate relevant agentbox skel files
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>
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
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
|
||||
Reference in New Issue
Block a user