Add Gitea Actions workflows for CI and Claude Code
All checks were successful
CI Smoke Test / smoke (push) Successful in 1m36s
All checks were successful
CI Smoke Test / smoke (push) Successful in 1m36s
This commit is contained in:
commit
608781dcbd
22
.gitea/workflows/ci-test.yml
Normal file
22
.gitea/workflows/ci-test.yml
Normal file
@ -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
|
||||||
26
.gitea/workflows/claude-test.yml
Normal file
26
.gitea/workflows/claude-test.yml
Normal file
@ -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
|
||||||
14
README.md
Normal file
14
README.md
Normal file
@ -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
|
||||||
Loading…
Reference in New Issue
Block a user