Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8965dd5878 |
+13
-14
@@ -4,14 +4,13 @@ run-name: ${{ gitea.actor }} triggered CI pipeline
|
||||
on:
|
||||
workflow_dispatch: {}
|
||||
push:
|
||||
branches: [main, develop] # only direct pushes/merges to protected branches
|
||||
branches: [main, develop, "fix-runner-trigger"]
|
||||
pull_request:
|
||||
branches: [main, develop] # PRs into main/develop
|
||||
types: [opened, reopened, synchronize]
|
||||
branches: [main, develop]
|
||||
|
||||
jobs:
|
||||
canary:
|
||||
runs-on: [self-hosted, macos-latest]
|
||||
runs-on: ["self-hosted:host", "macos-latest:host"]
|
||||
steps:
|
||||
- run: |
|
||||
uname -a
|
||||
@@ -19,7 +18,7 @@ jobs:
|
||||
echo "Runner labels OK ✅"
|
||||
|
||||
test:
|
||||
runs-on: [self-hosted, macos-latest]
|
||||
runs-on: ["self-hosted:host", "macos-latest:host"]
|
||||
strategy:
|
||||
matrix: { node-version: [18, 20] }
|
||||
env:
|
||||
@@ -48,7 +47,7 @@ jobs:
|
||||
# bash codecov.sh -t "${{ secrets.CODECOV_TOKEN }}" -f coverage/lcov.info -F unittests
|
||||
|
||||
e2e:
|
||||
runs-on: [self-hosted, macos-latest]
|
||||
runs-on: ["self-hosted:host", "macos-latest:host"]
|
||||
strategy:
|
||||
matrix: { browser: [chromium, firefox, webkit] }
|
||||
steps:
|
||||
@@ -81,7 +80,7 @@ jobs:
|
||||
retention-days: 30
|
||||
|
||||
visual-regression:
|
||||
runs-on: [self-hosted, macos-latest]
|
||||
runs-on: ["self-hosted:host", "macos-latest:host"]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
@@ -93,9 +92,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: gitea.ref == 'refs/heads/main'
|
||||
# Seed snapshots on main branch only (one-time setup)
|
||||
- name: Seed snapshots (main only)
|
||||
if: github.ref == 'refs/heads/main'
|
||||
run: PLAYWRIGHT_UPDATE_SNAPSHOTS=1 npx playwright test tests/e2e/visual-regression.spec.ts --project=chromium
|
||||
env: { CI: true }
|
||||
|
||||
@@ -118,7 +117,7 @@ jobs:
|
||||
retention-days: 30
|
||||
|
||||
performance:
|
||||
runs-on: [self-hosted, macos-latest]
|
||||
runs-on: ["self-hosted:host", "macos-latest:host"]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
@@ -156,7 +155,7 @@ jobs:
|
||||
path: lhci-results
|
||||
|
||||
storybook:
|
||||
runs-on: [self-hosted, macos-latest]
|
||||
runs-on: ["self-hosted:host", "macos-latest:host"]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
@@ -167,7 +166,7 @@ jobs:
|
||||
env: { CI: true }
|
||||
|
||||
lint:
|
||||
runs-on: [self-hosted, macos-latest]
|
||||
runs-on: ["self-hosted:host", "macos-latest:host"]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
@@ -177,7 +176,7 @@ jobs:
|
||||
- run: npx prettier --check "**/*.{js,jsx,ts,tsx,json,css,md}"
|
||||
|
||||
build:
|
||||
runs-on: [self-hosted, macos-latest]
|
||||
runs-on: ["self-hosted:host", "macos-latest:host"]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
45727
|
||||
35293
|
||||
|
||||
@@ -178,3 +178,4 @@ community-rule/
|
||||
## 📄 License
|
||||
|
||||
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
||||
# Test trigger
|
||||
|
||||
+2
-2
@@ -9,8 +9,8 @@ runner:
|
||||
fetch_timeout: 5s
|
||||
fetch_interval: 2s
|
||||
labels:
|
||||
- "self-hosted" # plain label
|
||||
- "macos-latest:host" # runs in host mode; label name is "macos-latest"
|
||||
- "self-hosted:host"
|
||||
- "macos-latest:host"
|
||||
|
||||
cache:
|
||||
enabled: true
|
||||
|
||||
Reference in New Issue
Block a user