Compare commits

...

3 Commits

3 changed files with 17 additions and 16 deletions
+14 -13
View File
@@ -4,13 +4,14 @@ run-name: ${{ gitea.actor }} triggered CI pipeline
on:
workflow_dispatch: {}
push:
branches: [main, develop, "fix-runner-trigger"]
branches: [main, develop] # only direct pushes/merges to protected branches
pull_request:
branches: [main, develop]
branches: [main, develop] # PRs into main/develop
types: [opened, reopened, synchronize]
jobs:
canary:
runs-on: ["self-hosted:host", "macos-latest:host"]
runs-on: [self-hosted, macos-latest]
steps:
- run: |
uname -a
@@ -18,7 +19,7 @@ jobs:
echo "Runner labels OK ✅"
test:
runs-on: ["self-hosted:host", "macos-latest:host"]
runs-on: [self-hosted, macos-latest]
strategy:
matrix: { node-version: [18, 20] }
env:
@@ -47,7 +48,7 @@ jobs:
# bash codecov.sh -t "${{ secrets.CODECOV_TOKEN }}" -f coverage/lcov.info -F unittests
e2e:
runs-on: ["self-hosted:host", "macos-latest:host"]
runs-on: [self-hosted, macos-latest]
strategy:
matrix: { browser: [chromium, firefox, webkit] }
steps:
@@ -80,7 +81,7 @@ jobs:
retention-days: 30
visual-regression:
runs-on: ["self-hosted:host", "macos-latest:host"]
runs-on: [self-hosted, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
@@ -92,9 +93,9 @@ jobs:
env: { CI: true }
- run: npx wait-on http://localhost:3000
# Seed snapshots on main branch only (one-time setup)
- name: Seed snapshots (main only)
if: github.ref == 'refs/heads/main'
# Seed snapshots on main branch only (one-time setup)
- name: Seed snapshots (main only)
if: gitea.ref == 'refs/heads/main'
run: PLAYWRIGHT_UPDATE_SNAPSHOTS=1 npx playwright test tests/e2e/visual-regression.spec.ts --project=chromium
env: { CI: true }
@@ -117,7 +118,7 @@ jobs:
retention-days: 30
performance:
runs-on: ["self-hosted:host", "macos-latest:host"]
runs-on: [self-hosted, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
@@ -155,7 +156,7 @@ jobs:
path: lhci-results
storybook:
runs-on: ["self-hosted:host", "macos-latest:host"]
runs-on: [self-hosted, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
@@ -166,7 +167,7 @@ jobs:
env: { CI: true }
lint:
runs-on: ["self-hosted:host", "macos-latest:host"]
runs-on: [self-hosted, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
@@ -176,7 +177,7 @@ jobs:
- run: npx prettier --check "**/*.{js,jsx,ts,tsx,json,css,md}"
build:
runs-on: ["self-hosted:host", "macos-latest:host"]
runs-on: [self-hosted, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
+1 -1
View File
@@ -1 +1 @@
35293
45727
+2 -2
View File
@@ -9,8 +9,8 @@ runner:
fetch_timeout: 5s
fetch_interval: 2s
labels:
- "self-hosted:host"
- "macos-latest:host"
- "self-hosted" # plain label
- "macos-latest:host" # runs in host mode; label name is "macos-latest"
cache:
enabled: true