LICENSE-MIT/LICENSE-APACHE were declared but missing. verificar.sh and instalar-hooks.sh become check.sh and install-hooks.sh, as in Acauã and Sabiá, and CI now runs the UI translation coverage check, which found 38 untranslated dashboard strings and a duplicated key. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
84 lines
2.6 KiB
YAML
84 lines
2.6 KiB
YAML
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
|
|
NPM_CONFIG_CACHE: /opt/hostedtoolcache/npm-cache
|
|
|
|
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
|
|
- uses: actions/setup-node@v7
|
|
with:
|
|
node-version: 22
|
|
- name: UI translation coverage
|
|
run: node scripts/check-ui-i18n.mjs
|
|
- name: Workflows and templates (valid YAML)
|
|
run: |
|
|
python3 -c 'import yaml' 2>/dev/null \
|
|
|| python3 -m pip install --quiet --user --break-system-packages pyyaml
|
|
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
|