8e0b4246b2
CI Pipeline / canary (pull_request) Successful in 1s
CI Pipeline / test (20) (pull_request) Failing after 1m8s
CI Pipeline / test (18) (pull_request) Failing after 1m20s
CI Pipeline / e2e (chromium) (pull_request) Failing after 1m1s
CI Pipeline / e2e (firefox) (pull_request) Failing after 1m0s
CI Pipeline / e2e (webkit) (pull_request) Failing after 1m0s
CI Pipeline / visual-regression (pull_request) Failing after 1m26s
CI Pipeline / performance (pull_request) Failing after 1m23s
CI Pipeline / lint (pull_request) Failing after 59s
CI Pipeline / build (pull_request) Failing after 56s
CI Pipeline / storybook (pull_request) Failing after 5m39s
36 lines
1016 B
Bash
Executable File
36 lines
1016 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "🚀 Starting Gitea Actions Runner..."
|
|
|
|
# Ensure Node.js is available in PATH
|
|
export PATH="/usr/local/bin:/opt/homebrew/bin:/usr/bin:/bin:$PATH"
|
|
|
|
# Verify Node.js is accessible
|
|
if ! command -v node >/dev/null 2>&1; then
|
|
echo "❌ Node.js not found in PATH!"
|
|
echo "Current PATH: $PATH"
|
|
exit 1
|
|
fi
|
|
|
|
echo "✅ Node.js found: $(which node) - $(node -v)"
|
|
|
|
# Check if runner is already running
|
|
if pgrep -f "act_runner daemon" > /dev/null; then
|
|
echo "⚠️ Runner is already running!"
|
|
echo "To stop it, run: ./stop-runner.sh"
|
|
exit 1
|
|
fi
|
|
|
|
# Start the runner in the background with proper PATH
|
|
PATH="/usr/local/bin:/opt/homebrew/bin:/usr/bin:/bin:$PATH" ./act_runner daemon --config config.yaml &
|
|
RUNNER_PID=$!
|
|
|
|
# Save PID to file for easy stopping
|
|
echo $RUNNER_PID > .runner.pid
|
|
|
|
echo "✅ Runner started with PID: $RUNNER_PID"
|
|
echo "📝 Logs will be written to: runner.log"
|
|
echo ""
|
|
echo "To stop the runner, run: ./stop-runner.sh"
|
|
echo "To check status, run: ./status-runner.sh"
|