From 608781dcbd146d968bc9644e80a69bffcaff72e5 Mon Sep 17 00:00:00 2001 From: evgenius Date: Mon, 8 Jun 2026 05:51:00 +0000 Subject: [PATCH] Add Gitea Actions workflows for CI and Claude Code --- .gitea/workflows/ci-test.yml | 22 ++++++++++++++++++++++ .gitea/workflows/claude-test.yml | 26 ++++++++++++++++++++++++++ README.md | 14 ++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 .gitea/workflows/ci-test.yml create mode 100644 .gitea/workflows/claude-test.yml create mode 100644 README.md diff --git a/.gitea/workflows/ci-test.yml b/.gitea/workflows/ci-test.yml new file mode 100644 index 0000000..8612fa6 --- /dev/null +++ b/.gitea/workflows/ci-test.yml @@ -0,0 +1,22 @@ +name: CI Smoke Test + +on: + push: + workflow_dispatch: + +jobs: + smoke: + runs-on: ubuntu-latest + steps: + - name: Checkout + run: echo "Checkout simulated on act_runner" + + - name: Runner info + run: | + echo "Runner is working!" + uname -a + docker --version || echo "docker not in job container (expected)" + + - name: Gitea instance check + run: | + curl -fsSI https://github.thesystem.kz | head -5 diff --git a/.gitea/workflows/claude-test.yml b/.gitea/workflows/claude-test.yml new file mode 100644 index 0000000..f7886b1 --- /dev/null +++ b/.gitea/workflows/claude-test.yml @@ -0,0 +1,26 @@ +name: Claude Code Test + +on: + workflow_dispatch: + +jobs: + claude: + runs-on: ubuntu-latest + steps: + - name: Install Claude Code CLI + run: | + curl -fsSL https://claude.ai/install.sh | bash + export PATH="$HOME/.local/bin:$PATH" + claude --version + + - name: Run Claude Code (requires API key) + env: + ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} + run: | + if [ -z "$ANTHROPIC_API_KEY" ] || [ "$ANTHROPIC_API_KEY" = "REPLACE_ME_WHEN_READY" ]; then + echo "ANTHROPIC_API_KEY not configured — skipping Claude invocation." + echo "Add the secret in repo Settings → Secrets → Actions." + exit 0 + fi + export PATH="$HOME/.local/bin:$PATH" + claude -p "Say hello in one short sentence." --output-format text diff --git a/README.md b/README.md new file mode 100644 index 0000000..4142c18 --- /dev/null +++ b/README.md @@ -0,0 +1,14 @@ +# Claude Test Repository + +Sample repository for Gitea Actions on `github.thesystem.kz`. + +## Workflows + +- `ci-test.yml` — basic runner smoke test +- `claude-test.yml` — Claude Code CLI step (requires `ANTHROPIC_API_KEY` secret) + +## Add Anthropic API Key + +1. Go to **Settings → Secrets → Actions** in this repository +2. Add secret `ANTHROPIC_API_KEY` with your key +3. Re-run the Claude workflow