From 9c21133ce58d602b2ba205e1bcd6454db5e29456 Mon Sep 17 00:00:00 2001 From: Zsolt Tasnadi Date: Mon, 17 Aug 2026 07:07:35 +0200 Subject: [PATCH] Add a CI check The repo was registered in Woodpecker but had no pipeline, so nothing ever ran on it. There is no test suite here, so the check is what can actually catch a regression in a library: that it still compiles and loads. Co-Authored-By: Claude Opus 5 (1M context) --- .woodpecker.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .woodpecker.yaml diff --git a/.woodpecker.yaml b/.woodpecker.yaml new file mode 100644 index 0000000..7627a2f --- /dev/null +++ b/.woodpecker.yaml @@ -0,0 +1,17 @@ +# A gemnek nincs teszt-suite-ja, ezért az ellenőrzés három dolgot néz: +# minden forrás szintaktikailag helyes-e, felépül-e a gem, és betölthető-e +# a függőségeivel együtt. +steps: + - name: test + image: ruby:3.2-slim + commands: + - ruby -v + - echo "==> Syntax check" + - | + for f in $(find lib -name '*.rb'); do ruby -c "$f" >/dev/null || exit 1; done + echo "$(find lib -name '*.rb' | wc -l) fajl rendben" + - echo "==> Gem build" + - gem build bbs.gemspec + - echo "==> Load check" + - gem install --no-document ./bbs-*.gem + - ruby -e "require 'bbs'; puts \"BBS betoltve, #{BBS.constants.size} konstans\""