Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| cfe54737b8 |
+44
-53
@@ -4,22 +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:host", "macos-latest:host"]
|
||||
steps:
|
||||
- run: |
|
||||
uname -a
|
||||
node -v || true
|
||||
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:
|
||||
@@ -48,7 +39,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:
|
||||
@@ -81,7 +72,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
|
||||
@@ -118,45 +109,45 @@ jobs:
|
||||
retention-days: 30
|
||||
|
||||
performance:
|
||||
runs-on: ["self-hosted:host", "macos-latest:host"]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with: { node-version: 20, cache: npm }
|
||||
- run: npm ci
|
||||
|
||||
- name: Install LHCI
|
||||
run: npm i -D @lhci/cli
|
||||
|
||||
# Ensure a Chrome binary is available (works on Linux/macOS runners)
|
||||
- name: Install Chrome via Puppeteer (portable)
|
||||
run: |
|
||||
npx @puppeteer/browsers install chrome@stable -P .cache/puppeteer
|
||||
echo "CHROME_PATH=$(npx @puppeteer/browsers executable-path chrome@stable -P .cache/puppeteer)" >> $GITHUB_ENV
|
||||
|
||||
- name: Build application
|
||||
run: npm run build
|
||||
|
||||
- name: Start application
|
||||
run: npm run preview &
|
||||
env: { CI: true }
|
||||
|
||||
- name: Wait for application
|
||||
run: npx wait-on http://localhost:3000
|
||||
|
||||
- name: Run Lighthouse CI
|
||||
run: npx lhci autorun --chrome-path="$CHROME_PATH"
|
||||
env: { CI: true }
|
||||
|
||||
- name: Upload LHCI results
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: lhci-results
|
||||
path: lhci-results
|
||||
runs-on: [self-hosted, macos-latest]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with: { node-version: 20, cache: npm }
|
||||
- run: npm ci
|
||||
|
||||
- name: Install LHCI
|
||||
run: npm i -D @lhci/cli
|
||||
|
||||
# Ensure a Chrome binary is available (works on Linux/macOS runners)
|
||||
- name: Install Chrome via Puppeteer (portable)
|
||||
run: |
|
||||
npx @puppeteer/browsers install chrome@stable -P .cache/puppeteer
|
||||
echo "CHROME_PATH=$(npx @puppeteer/browsers executable-path chrome@stable -P .cache/puppeteer)" >> $GITHUB_ENV
|
||||
|
||||
- name: Build application
|
||||
run: npm run build
|
||||
|
||||
- name: Start application
|
||||
run: npm run preview &
|
||||
env: { CI: true }
|
||||
|
||||
- name: Wait for application
|
||||
run: npx wait-on http://localhost:3000
|
||||
|
||||
- name: Run Lighthouse CI
|
||||
run: npx lhci autorun --chrome-path="$CHROME_PATH"
|
||||
env: { CI: true }
|
||||
|
||||
- name: Upload LHCI results
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: lhci-results
|
||||
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
|
||||
@@ -167,7 +158,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
|
||||
@@ -177,7 +168,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,12 +1,12 @@
|
||||
{
|
||||
"WARNING": "This file is automatically generated by act-runner. Do not edit it manually unless you know what you are doing. Removing this file will cause act runner to re-register as a new runner.",
|
||||
"id": 12,
|
||||
"uuid": "1f114e7b-9330-40fc-9c96-816b07f3e4c2",
|
||||
"name": "community-rule-test-runner",
|
||||
"token": "ba42513830cbc9e2eb6abf86ee119fadfcb7a14b",
|
||||
"id": 7,
|
||||
"uuid": "3a8b9f5a-189b-47a3-b0b1-1a06c933cc06",
|
||||
"name": "community-rule-runner-1",
|
||||
"token": "23ecad1165282704291cfa5112a36aebfadfa40a",
|
||||
"address": "https://git.medlab.host",
|
||||
"labels": [
|
||||
"self-hosted:host",
|
||||
"macos-latest:host"
|
||||
"macos-latest:host",
|
||||
"self-hosted:host"
|
||||
]
|
||||
}
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
35293
|
||||
39731
|
||||
|
||||
@@ -178,4 +178,4 @@ community-rule/
|
||||
## 📄 License
|
||||
|
||||
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
||||
# Test trigger
|
||||
# Test from working commit
|
||||
|
||||
+1
-2
@@ -9,8 +9,8 @@ runner:
|
||||
fetch_timeout: 5s
|
||||
fetch_interval: 2s
|
||||
labels:
|
||||
- "self-hosted:host"
|
||||
- "macos-latest:host"
|
||||
- "self-hosted:host"
|
||||
|
||||
cache:
|
||||
enabled: true
|
||||
@@ -27,7 +27,6 @@ container:
|
||||
valid_volumes: []
|
||||
docker_host: ""
|
||||
force_pull: false
|
||||
mode: "host"
|
||||
|
||||
host:
|
||||
workdir_parent: ""
|
||||
|
||||
Reference in New Issue
Block a user