Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8965dd5878 |
+13
-14
@@ -4,14 +4,13 @@ run-name: ${{ gitea.actor }} triggered CI pipeline
|
|||||||
on:
|
on:
|
||||||
workflow_dispatch: {}
|
workflow_dispatch: {}
|
||||||
push:
|
push:
|
||||||
branches: [main, develop] # only direct pushes/merges to protected branches
|
branches: [main, develop, "fix-runner-trigger"]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main, develop] # PRs into main/develop
|
branches: [main, develop]
|
||||||
types: [opened, reopened, synchronize]
|
|
||||||
|
|
||||||
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
|
||||||
@@ -19,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:
|
||||||
@@ -48,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:
|
||||||
@@ -81,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
|
||||||
@@ -93,9 +92,9 @@ jobs:
|
|||||||
env: { CI: true }
|
env: { CI: true }
|
||||||
- run: npx wait-on http://localhost:3000
|
- run: npx wait-on http://localhost:3000
|
||||||
|
|
||||||
# Seed snapshots on main branch only (one-time setup)
|
# Seed snapshots on main branch only (one-time setup)
|
||||||
- name: Seed snapshots (main only)
|
- name: Seed snapshots (main only)
|
||||||
if: gitea.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
run: PLAYWRIGHT_UPDATE_SNAPSHOTS=1 npx playwright test tests/e2e/visual-regression.spec.ts --project=chromium
|
run: PLAYWRIGHT_UPDATE_SNAPSHOTS=1 npx playwright test tests/e2e/visual-regression.spec.ts --project=chromium
|
||||||
env: { CI: true }
|
env: { CI: true }
|
||||||
|
|
||||||
@@ -118,7 +117,7 @@ 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
|
||||||
@@ -156,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
|
||||||
@@ -167,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
|
||||||
@@ -177,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
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
45727
|
35293
|
||||||
|
|||||||
@@ -178,3 +178,4 @@ community-rule/
|
|||||||
## 📄 License
|
## 📄 License
|
||||||
|
|
||||||
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
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_timeout: 5s
|
||||||
fetch_interval: 2s
|
fetch_interval: 2s
|
||||||
labels:
|
labels:
|
||||||
- "self-hosted" # plain label
|
- "self-hosted:host"
|
||||||
- "macos-latest:host" # runs in host mode; label name is "macos-latest"
|
- "macos-latest:host"
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|||||||
Reference in New Issue
Block a user