name: MCP Tests on: push: branches: [ main ] paths: - 'scripts/**' - 'scripts/mcp-server/**' - 'parts/packages.nix' - 'flake.nix' - 'flake.lock' - '.gitea/workflows/mcp-tests.yml' pull_request: paths: - 'scripts/**' - 'scripts/mcp-server/**' - 'parts/packages.nix' - 'flake.nix' - 'flake.lock' - '.gitea/workflows/mcp-tests.yml' jobs: mcp-tests: runs-on: nixos defaults: run: working-directory: ${{ github.workspace }} steps: - name: Checkout repository uses: actions/checkout@v4 - name: Run MCP lint/format/tests via nix-shell run: | cd "${GITEA_WORKSPACE:-${GITHUB_WORKSPACE:-$PWD}}" nix run .#mcp-tests