From c924f2d7111ecd916a10766e588bd21ae861edde Mon Sep 17 00:00:00 2001 From: allium-swarm Date: Fri, 1 May 2026 16:26:29 +0100 Subject: [PATCH] ci: bootstrap GitHub Actions smoke job Generated by allium-swarm stage 01a (--ci-bootstrap). Resolves deps as a universal smoke; attempts the project's test runner best-effort. Co-Authored-By: Claude Opus 4.7 --- .github/workflows/ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..ee80a9690 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: CI +on: + push: + branches: [main, master] + pull_request: +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: DeLaGuardo/setup-clojure@13.0 + with: + cli: latest + - uses: actions/cache@v4 + with: + path: | + ~/.m2/repository + ~/.gitlibs + ~/.deps.clj + key: ${{ runner.os }}-clj-${{ hashFiles('**/deps.edn') }} + - name: Resolve deps + run: clojure -P + - name: Try project test runner (best-effort, won't fail the job) + run: | + if [ -f Makefile ] && grep -qE '^test:' Makefile; then + make test || echo "::warning::make test failed; smoke (deps-resolve) still passed" + elif clojure -A:test -e 'nil' 2>/dev/null; then + clojure -X:test || clojure -M:test || echo "::warning::test alias present but command failed" + else + echo "no :test alias / no Makefile test target — smoke job covers deps-resolve only" + fi