Fix label matching: Use clean label names in runs-on, keep execution mode in runner config
This commit is contained in:
@@ -11,7 +11,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
canary:
|
canary:
|
||||||
runs-on: ["self-hosted:host", "macos-latest:host"]
|
runs-on: [self-hosted, macos-latest]
|
||||||
steps:
|
steps:
|
||||||
- run: |
|
- run: |
|
||||||
uname -a
|
uname -a
|
||||||
@@ -19,7 +19,7 @@ jobs:
|
|||||||
echo "Runner labels OK ✅"
|
echo "Runner labels OK ✅"
|
||||||
|
|
||||||
test:
|
test:
|
||||||
runs-on: ["self-hosted:host", "macos-latest:host"]
|
runs-on: [self-hosted, macos-latest]
|
||||||
strategy:
|
strategy:
|
||||||
matrix: { node-version: [18, 20] }
|
matrix: { node-version: [18, 20] }
|
||||||
env:
|
env:
|
||||||
@@ -48,7 +48,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:host", "macos-latest:host"]
|
runs-on: [self-hosted, macos-latest]
|
||||||
strategy:
|
strategy:
|
||||||
matrix: { browser: [chromium, firefox, webkit] }
|
matrix: { browser: [chromium, firefox, webkit] }
|
||||||
steps:
|
steps:
|
||||||
@@ -81,7 +81,7 @@ jobs:
|
|||||||
retention-days: 30
|
retention-days: 30
|
||||||
|
|
||||||
visual-regression:
|
visual-regression:
|
||||||
runs-on: ["self-hosted:host", "macos-latest:host"]
|
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
|
||||||
@@ -118,7 +118,7 @@ jobs:
|
|||||||
retention-days: 30
|
retention-days: 30
|
||||||
|
|
||||||
performance:
|
performance:
|
||||||
runs-on: ["self-hosted:host", "macos-latest:host"]
|
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
|
||||||
@@ -156,7 +156,7 @@ jobs:
|
|||||||
path: lhci-results
|
path: lhci-results
|
||||||
|
|
||||||
storybook:
|
storybook:
|
||||||
runs-on: ["self-hosted:host", "macos-latest:host"]
|
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
|
||||||
@@ -167,7 +167,7 @@ jobs:
|
|||||||
env: { CI: true }
|
env: { CI: true }
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
runs-on: ["self-hosted:host", "macos-latest:host"]
|
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
|
||||||
@@ -177,7 +177,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:host", "macos-latest:host"]
|
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
|
||||||
|
|||||||
+2
-2
@@ -9,8 +9,8 @@ runner:
|
|||||||
fetch_timeout: 5s
|
fetch_timeout: 5s
|
||||||
fetch_interval: 2s
|
fetch_interval: 2s
|
||||||
labels:
|
labels:
|
||||||
- "self-hosted:host"
|
- "self-hosted" # plain label
|
||||||
- "macos-latest:host"
|
- "macos-latest:host" # runs in host mode; label name is "macos-latest"
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|||||||
Reference in New Issue
Block a user