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
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:
+43
-35
@@ -9,6 +9,14 @@ on:
|
||||
branches: [main, develop]
|
||||
|
||||
jobs:
|
||||
canary:
|
||||
runs-on: [self-hosted, macos-latest]
|
||||
steps:
|
||||
- run: |
|
||||
uname -a
|
||||
node -v || true
|
||||
echo "Runner labels OK ✅"
|
||||
|
||||
test:
|
||||
runs-on: [self-hosted, macos-latest]
|
||||
strategy:
|
||||
@@ -110,41 +118,41 @@ jobs:
|
||||
|
||||
performance:
|
||||
runs-on: [self-hosted, macos-latest]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with: { node-version: 20, cache: npm }
|
||||
- run: npm ci
|
||||
|
||||
- name: Install LHCI
|
||||
run: npm i -D @lhci/cli
|
||||
|
||||
# Ensure a Chrome binary is available (works on Linux/macOS runners)
|
||||
- name: Install Chrome via Puppeteer (portable)
|
||||
run: |
|
||||
npx @puppeteer/browsers install chrome@stable -P .cache/puppeteer
|
||||
echo "CHROME_PATH=$(npx @puppeteer/browsers executable-path chrome@stable -P .cache/puppeteer)" >> $GITHUB_ENV
|
||||
|
||||
- name: Build application
|
||||
run: npm run build
|
||||
|
||||
- name: Start application
|
||||
run: npm run preview &
|
||||
env: { CI: true }
|
||||
|
||||
- name: Wait for application
|
||||
run: npx wait-on http://localhost:3000
|
||||
|
||||
- name: Run Lighthouse CI
|
||||
run: npx lhci autorun --chrome-path="$CHROME_PATH"
|
||||
env: { CI: true }
|
||||
|
||||
- name: Upload LHCI results
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: lhci-results
|
||||
path: lhci-results
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with: { node-version: 20, cache: npm }
|
||||
- run: npm ci
|
||||
|
||||
- name: Install LHCI
|
||||
run: npm i -D @lhci/cli
|
||||
|
||||
# Ensure a Chrome binary is available (works on Linux/macOS runners)
|
||||
- name: Install Chrome via Puppeteer (portable)
|
||||
run: |
|
||||
npx @puppeteer/browsers install chrome@stable -P .cache/puppeteer
|
||||
echo "CHROME_PATH=$(npx @puppeteer/browsers executable-path chrome@stable -P .cache/puppeteer)" >> $GITHUB_ENV
|
||||
|
||||
- name: Build application
|
||||
run: npm run build
|
||||
|
||||
- name: Start application
|
||||
run: npm run preview &
|
||||
env: { CI: true }
|
||||
|
||||
- name: Wait for application
|
||||
run: npx wait-on http://localhost:3000
|
||||
|
||||
- name: Run Lighthouse CI
|
||||
run: npx lhci autorun --chrome-path="$CHROME_PATH"
|
||||
env: { CI: true }
|
||||
|
||||
- name: Upload LHCI results
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: lhci-results
|
||||
path: lhci-results
|
||||
|
||||
storybook:
|
||||
runs-on: [self-hosted, macos-latest]
|
||||
|
||||
+2
-2
@@ -9,8 +9,8 @@ runner:
|
||||
fetch_timeout: 5s
|
||||
fetch_interval: 2s
|
||||
labels:
|
||||
- "macos-latest:host"
|
||||
- "self-hosted:host"
|
||||
- "self-hosted"
|
||||
- "macos-latest"
|
||||
|
||||
cache:
|
||||
enabled: true
|
||||
|
||||
Reference in New Issue
Block a user