feat(ci,doctor,export): add Gitea CI/CD, verification scripts, doctor and export commands

This commit is contained in:
Lucas Rayan committed 2026-11-02 10:48:34 -03:00
1 parent d1475e7141
commit db2cdc03ef
15 files changed
+1406 -168

No files matched your search

+75
View File
@@ -0,0 +1,75 @@
name: CI
on:
# Documentation-only or local agent state changes do not trigger CI jobs.
pull_request:
paths-ignore: ['**.md', 'docs/**', 'LICENSE*', '.gitignore', '.githooks/**', '.wolf/**', '.claude/**', '.opencode/**', '.codex/**', '.cursor/**', '.superpowers/**', '.superset/**', '.gitea/ISSUE_TEMPLATE/**', 'scripts/release-notes.sh', '.gitea/workflows/release.yml']
workflow_call:
concurrency:
group: ci-${{ gitea.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -D warnings
CARGO_HOME: /opt/hostedtoolcache/cargo
RUSTUP_HOME: /opt/hostedtoolcache/rustup
jobs:
lint:
name: Format and clippy
runs-on: linux-arm64
env:
CARGO_TARGET_DIR: /opt/hostedtoolcache/cargo-target/xexeu-lint
steps:
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Workflows and templates (valid YAML)
run: |
python3 -c "
import glob, yaml
for f in glob.glob('.gitea/**/*.yml', recursive=True):
yaml.safe_load(open(f))
"
- name: Docker compose config
run: docker compose config --quiet
- run: cargo fmt --all -- --check
- run: cargo clippy --workspace --all-targets
test:
name: Tests (Linux)
runs-on: linux-arm64
env:
CARGO_TARGET_DIR: /opt/hostedtoolcache/cargo-target/xexeu-test
steps:
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@stable
- run: cargo test --workspace
audit:
name: Dependency audit
runs-on: linux-arm64
steps:
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@stable
- name: cargo audit
run: |
command -v cargo-audit >/dev/null || cargo install cargo-audit --locked
cargo audit
image:
name: Docker image (build and smoke test)
if: ${{ gitea.event_name == 'pull_request' }}
runs-on: linux-arm64
steps:
- uses: actions/checkout@v7
- name: Build
run: docker build -t "xexeu-ci:${{ gitea.run_id }}" .
- name: Smoke test
run: scripts/smoke-image.sh "xexeu-ci:${{ gitea.run_id }}"
- name: Clean up
if: always()
run: docker rmi -f "xexeu-ci:${{ gitea.run_id }}" >/dev/null 2>&1 || true