Files
git.stella-ops.org/.actrc

48 lines
1.5 KiB
Plaintext

# =============================================================================
# ACT CONFIGURATION
# =============================================================================
# Configuration for nektos/act - local Gitea/GitHub Actions runner.
#
# Usage:
# act # Run default event
# act pull_request # Run PR event
# act -W .gitea/workflows/test-matrix.yml
# act -l # List available jobs
# act -n # Dry run
#
# Installation:
# macOS: brew install act
# Linux: curl -sSL https://raw.githubusercontent.com/nektos/act/master/install.sh | sudo bash
# Windows: choco install act-cli
#
# Documentation: https://github.com/nektos/act
# =============================================================================
# Platform mappings - use local CI image for consistent environment
--platform ubuntu-22.04=stellaops-ci:local
--platform ubuntu-latest=stellaops-ci:local
# Container architecture (amd64 for consistency)
--container-architecture linux/amd64
# Environment variables matching CI
--env DOTNET_NOLOGO=1
--env DOTNET_CLI_TELEMETRY_OPTOUT=1
--env DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
--env TZ=UTC
# Load local secrets/environment
--env-file devops/ci-local/.env.local
# Bind mount the repository (faster than copying)
--bind
# Reuse containers between runs (faster)
--reuse
# Artifact server path for uploads
--artifact-server-path ./out/act-artifacts
# Default event file
--eventpath devops/ci-local/events/pull-request.json