Update workflow to match runner labels: Use self-hosted:host and macos-latest:host
This commit is contained in:
+15
-15
@@ -10,7 +10,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
canary:
|
canary:
|
||||||
runs-on: [self-hosted, macos-latest]
|
runs-on: ["self-hosted:host", "macos-latest:host"]
|
||||||
steps:
|
steps:
|
||||||
- run: |
|
- run: |
|
||||||
uname -a
|
uname -a
|
||||||
@@ -18,7 +18,7 @@ jobs:
|
|||||||
echo "Runner labels OK ✅"
|
echo "Runner labels OK ✅"
|
||||||
|
|
||||||
test:
|
test:
|
||||||
runs-on: [self-hosted, macos-latest]
|
runs-on: ["self-hosted:host", "macos-latest:host"]
|
||||||
strategy:
|
strategy:
|
||||||
matrix: { node-version: [18, 20] }
|
matrix: { node-version: [18, 20] }
|
||||||
env:
|
env:
|
||||||
@@ -47,7 +47,7 @@ jobs:
|
|||||||
# bash codecov.sh -t "${{ secrets.CODECOV_TOKEN }}" -f coverage/lcov.info -F unittests
|
# bash codecov.sh -t "${{ secrets.CODECOV_TOKEN }}" -f coverage/lcov.info -F unittests
|
||||||
|
|
||||||
e2e:
|
e2e:
|
||||||
runs-on: [self-hosted, macos-latest]
|
runs-on: ["self-hosted:host", "macos-latest:host"]
|
||||||
strategy:
|
strategy:
|
||||||
matrix: { browser: [chromium, firefox, webkit] }
|
matrix: { browser: [chromium, firefox, webkit] }
|
||||||
steps:
|
steps:
|
||||||
@@ -80,7 +80,7 @@ jobs:
|
|||||||
retention-days: 30
|
retention-days: 30
|
||||||
|
|
||||||
visual-regression:
|
visual-regression:
|
||||||
runs-on: [self-hosted, macos-latest]
|
runs-on: ["self-hosted:host", "macos-latest:host"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
@@ -117,36 +117,36 @@ jobs:
|
|||||||
retention-days: 30
|
retention-days: 30
|
||||||
|
|
||||||
performance:
|
performance:
|
||||||
runs-on: [self-hosted, macos-latest]
|
runs-on: ["self-hosted:host", "macos-latest:host"]
|
||||||
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
|
||||||
@@ -155,7 +155,7 @@ jobs:
|
|||||||
path: lhci-results
|
path: lhci-results
|
||||||
|
|
||||||
storybook:
|
storybook:
|
||||||
runs-on: [self-hosted, macos-latest]
|
runs-on: ["self-hosted:host", "macos-latest:host"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
@@ -166,7 +166,7 @@ jobs:
|
|||||||
env: { CI: true }
|
env: { CI: true }
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
runs-on: [self-hosted, macos-latest]
|
runs-on: ["self-hosted:host", "macos-latest:host"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
@@ -176,7 +176,7 @@ jobs:
|
|||||||
- run: npx prettier --check "**/*.{js,jsx,ts,tsx,json,css,md}"
|
- run: npx prettier --check "**/*.{js,jsx,ts,tsx,json,css,md}"
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: [self-hosted, macos-latest]
|
runs-on: ["self-hosted:host", "macos-latest:host"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user