Files
Heimdall/.forgejo/workflows/ci.yml
T
Arnaud Dartois 895fdc3422 chore: remove opencode config and references
OpenCode is replaced by Hermes skills and profiles. Removes opencode.json, .opencode-vars.md, .opencode-local/ (Heimdall), research-improve.yml (Heimdall) and cleans .gitignore/.dockerignore/CI paths-ignore references.
2026-08-09 19:31:48 +02:00

90 lines
2.5 KiB
YAML

# CI Pipeline (unifiée via nonobis/templates)
name: CI
on:
workflow_dispatch:
push:
branches: [main, develop]
paths-ignore:
- '**.md'
pull_request:
branches: [main]
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_NOLOGO: 1
concurrency:
group: ci-${{ forgejo.ref }}
cancel-in-progress: true
jobs:
ci:
runs-on: debian-12
enable-openid-connect: true
steps:
# Disk cleanup before CI (handles runners with limited disk)
- name: Free disk space
run: |
echo "=== Disk before cleanup ==="
df -h /
# Remove Docker images and containers (no sudo needed)
docker system prune -af --volumes 2>/dev/null || true
# Remove user-level caches
rm -rf ~/.cache/* 2>/dev/null || true
rm -rf /tmp/* 2>/dev/null || true
rm -rf /var/tmp/* 2>/dev/null || true
echo "=== Disk after cleanup ==="
df -h /
- uses: https://forgejo.tordais.cc/actions/checkout@v4
with:
fetch-depth: 0
- uses: https://forgejo.tordais.cc/actions/checkout@v4
with:
repository: nonobis/templates
token: ${{ secrets.TEMPLATES_PAT }}
path: .ci
ref: main
- uses: ./.ci/.forgejo/actions/ci-full
with:
project: heimdall
vault-url: https://vault.tordais.cc
pg-enabled: 'true'
gitversion-enabled: 'false'
node-enabled: 'false'
bunit-enabled: 'true'
e2e-enabled: 'false'
sonar-enabled: 'false'
trivy-enabled: 'false'
docker-images: |
eltruncho/heimdall docker/Dockerfile
eltruncho/heimdall-agent docker/Dockerfile.agent
# Cleanup before coverage report generation
- name: Free space before coverage
if: always()
run: |
echo "=== Disk before coverage cleanup ==="
df -h /
# Remove build artifacts (keep only what's needed for coverage)
find . -type d -name "bin" -exec rm -rf {} + 2>/dev/null || true
find . -type d -name "obj" -exec rm -rf {} + 2>/dev/null || true
# Remove test results except coverage files
find . -type f -name "*.trx" -delete 2>/dev/null || true
find . -type f -name "*.log" -delete 2>/dev/null || true
# Clean user-level caches
rm -rf /tmp/* 2>/dev/null || true
rm -rf ~/.cache/* 2>/dev/null || true
echo "=== Disk after coverage cleanup ==="
df -h /