Testing Framwork #17

Merged
an.di merged 83 commits from adilallo/enhancement/TestingFramework2 into main 2025-09-03 18:50:40 +00:00
3 changed files with 25 additions and 11 deletions
Showing only changes of commit 8e0b4246b2 - Show all commits
+10 -9
View File
@@ -11,15 +11,16 @@ on:
jobs:
canary:
runs-on: ["self-hosted:host", "macos-latest:host"]
runs-on: [self-hosted, macos-latest]
steps:
- run: |
echo "PATH=$PATH"
which node && node -v
uname -a
node -v || true
echo "Runner labels OK ✅"
test:
runs-on: ["self-hosted:host", "macos-latest:host"]
runs-on: [self-hosted, macos-latest]
strategy:
matrix: { node-version: [18, 20] }
env:
@@ -48,7 +49,7 @@ jobs:
# bash codecov.sh -t "${{ secrets.CODECOV_TOKEN }}" -f coverage/lcov.info -F unittests
e2e:
runs-on: ["self-hosted:host", "macos-latest:host"]
runs-on: [self-hosted, macos-latest]
strategy:
matrix: { browser: [chromium, firefox, webkit] }
steps:
@@ -81,7 +82,7 @@ jobs:
retention-days: 30
visual-regression:
runs-on: ["self-hosted:host", "macos-latest:host"]
runs-on: [self-hosted, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
@@ -118,7 +119,7 @@ jobs:
retention-days: 30
performance:
runs-on: ["self-hosted:host", "macos-latest:host"]
runs-on: [self-hosted, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
@@ -156,7 +157,7 @@ jobs:
path: lhci-results
storybook:
runs-on: ["self-hosted:host", "macos-latest:host"]
runs-on: [self-hosted, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
@@ -167,7 +168,7 @@ jobs:
env: { CI: true }
lint:
runs-on: ["self-hosted:host", "macos-latest:host"]
runs-on: [self-hosted, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
@@ -177,7 +178,7 @@ jobs:
- run: npx prettier --check "**/*.{js,jsx,ts,tsx,json,css,md}"
build:
runs-on: ["self-hosted:host", "macos-latest:host"]
runs-on: [self-hosted, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
+1
View File
@@ -0,0 +1 @@
66560
+14 -2
View File
@@ -2,6 +2,18 @@
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!"
@@ -9,8 +21,8 @@ if pgrep -f "act_runner daemon" > /dev/null; then
exit 1
fi
# Start the runner in the background
./act_runner daemon --config config.yaml &
# 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