From 9ecba9a6f1a3efbd6b5ad3321268d16be1f3a7e8 Mon Sep 17 00:00:00 2001 From: adilallo <39313955+adilallo@users.noreply.github.com> Date: Fri, 29 Aug 2025 20:42:57 -0600 Subject: [PATCH] Fix runner issues: Correct labels, fix YAML indentation, add canary job --- .gitea/workflows/ci.yaml | 78 ++++++++++++++++++++++------------------ config.yaml | 4 +-- 2 files changed, 45 insertions(+), 37 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 6e0b3ab..689aad9 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -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] diff --git a/config.yaml b/config.yaml index 23f70bb..f49f086 100644 --- a/config.yaml +++ b/config.yaml @@ -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