From 82b0d84fec7bb54381dc940fb380652a6c4bf875 Mon Sep 17 00:00:00 2001 From: ruihan Date: Sat, 20 Jun 2026 15:17:27 -0300 Subject: [PATCH] Add CircleCI config as free CI alternative --- .circleci/config.yml | 52 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..6b6eedb --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,52 @@ +version: 2.1 + +jobs: + lint: + docker: + - image: koalaman/shellcheck-alpine:stable + steps: + - checkout + - run: + name: ShellCheck + command: | + apk add bash + for f in unleash lib/*.sh examples/*.sh; do + [ -f "$f" ] || continue + echo "Checking: $f" + shellcheck -S warning "$f" || exit 1 + done + + syntax: + docker: + - image: alpine:latest + steps: + - checkout + - run: + name: Bash Syntax Check + command: | + apk add bash + for f in unleash lib/*.sh examples/*.sh; do + [ -f "$f" ] || continue + echo "Checking: $f" + bash -n "$f" || exit 1 + done + + markdown: + docker: + - image: alpine:latest + steps: + - checkout + - run: + name: Markdown Lint + command: | + apk add npm + npm install -g markdownlint-cli + markdownlint '*.md' || true + +workflows: + version: 2 + ci: + jobs: + - lint + - syntax + - markdown