Fix runner issues: Correct labels, fix YAML indentation, add canary job
CI Pipeline / canary (push) Successful in 0s
CI Pipeline / test (20) (push) Failing after 1m10s
CI Pipeline / test (18) (push) Failing after 1m21s
CI Pipeline / e2e (chromium) (push) Failing after 1m18s
CI Pipeline / e2e (firefox) (push) Failing after 1m8s
CI Pipeline / e2e (webkit) (push) Failing after 1m13s
CI Pipeline / visual-regression (push) Failing after 1m43s
CI Pipeline / performance (push) Failing after 1m24s
CI Pipeline / lint (push) Failing after 57s
CI Pipeline / build (push) Failing after 56s
CI Pipeline / canary (pull_request) Successful in 1s
CI Pipeline / test (18) (pull_request) Failing after 1m10s
CI Pipeline / test (20) (pull_request) Failing after 47s
CI Pipeline / storybook (push) Failing after 5m41s
CI Pipeline / e2e (chromium) (pull_request) Failing after 59s
CI Pipeline / e2e (firefox) (pull_request) Failing after 1m3s
CI Pipeline / e2e (webkit) (pull_request) Failing after 1m4s
CI Pipeline / performance (pull_request) Failing after 1m25s
CI Pipeline / visual-regression (pull_request) Failing after 1m35s
CI Pipeline / lint (pull_request) Failing after 53s
CI Pipeline / build (pull_request) Failing after 1m7s
CI Pipeline / storybook (pull_request) Failing after 5m33s

This commit is contained in:
adilallo
2025-08-29 20:42:57 -06:00
parent 6994f7508f
commit 9ecba9a6f1
2 changed files with 45 additions and 37 deletions
+36 -28
View File
@@ -9,6 +9,14 @@ on:
branches: [main, develop] branches: [main, develop]
jobs: jobs:
canary:
runs-on: [self-hosted, macos-latest]
steps:
- run: |
uname -a
node -v || true
echo "Runner labels OK ✅"
test: test:
runs-on: [self-hosted, macos-latest] runs-on: [self-hosted, macos-latest]
strategy: strategy:
@@ -110,41 +118,41 @@ jobs:
performance: performance:
runs-on: [self-hosted, macos-latest] runs-on: [self-hosted, macos-latest]
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
with: { node-version: 20, cache: npm } with: { node-version: 20, cache: npm }
- run: npm ci - run: npm ci
- name: Install LHCI - name: Install LHCI
run: npm i -D @lhci/cli run: npm i -D @lhci/cli
# Ensure a Chrome binary is available (works on Linux/macOS runners) # Ensure a Chrome binary is available (works on Linux/macOS runners)
- name: Install Chrome via Puppeteer (portable) - name: Install Chrome via Puppeteer (portable)
run: | run: |
npx @puppeteer/browsers install chrome@stable -P .cache/puppeteer npx @puppeteer/browsers install chrome@stable -P .cache/puppeteer
echo "CHROME_PATH=$(npx @puppeteer/browsers executable-path chrome@stable -P .cache/puppeteer)" >> $GITHUB_ENV echo "CHROME_PATH=$(npx @puppeteer/browsers executable-path chrome@stable -P .cache/puppeteer)" >> $GITHUB_ENV
- name: Build application - name: Build application
run: npm run build run: npm run build
- name: Start application - name: Start application
run: npm run preview & run: npm run preview &
env: { CI: true } env: { CI: true }
- name: Wait for application - name: Wait for application
run: npx wait-on http://localhost:3000 run: npx wait-on http://localhost:3000
- name: Run Lighthouse CI - name: Run Lighthouse CI
run: npx lhci autorun --chrome-path="$CHROME_PATH" run: npx lhci autorun --chrome-path="$CHROME_PATH"
env: { CI: true } env: { CI: true }
- name: Upload LHCI results - name: Upload LHCI results
if: always() if: always()
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: lhci-results name: lhci-results
path: lhci-results path: lhci-results
storybook: storybook:
runs-on: [self-hosted, macos-latest] runs-on: [self-hosted, macos-latest]
+2 -2
View File
@@ -9,8 +9,8 @@ runner:
fetch_timeout: 5s fetch_timeout: 5s
fetch_interval: 2s fetch_interval: 2s
labels: labels:
- "macos-latest:host" - "self-hosted"
- "self-hosted:host" - "macos-latest"
cache: cache:
enabled: true enabled: true