chore(ci): run main workflows on self-hosted runners (#602)

Split PR CI (GitHub-hosted) from main push CI/deploy (page-agent-trusted).
This commit is contained in:
Simon
2026-07-09 15:35:59 +08:00
committed by GitHub
parent 3162ac5b45
commit d77ac0322d
3 changed files with 34 additions and 9 deletions
+2 -8
View File
@@ -3,27 +3,21 @@ permissions:
contents: read
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [24]
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Setup Node.js ${{ matrix.node-version }}
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
node-version: 24
cache: 'npm'
- name: Install dependencies
+2 -1
View File
@@ -3,10 +3,11 @@ name: Deploy Website
on:
push:
branches: [main]
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
runs-on: page-agent-trusted
permissions:
contents: read
pages: write
+30
View File
@@ -0,0 +1,30 @@
# Runs only for code already on main, on the self-hosted runner.
# PR-triggered CI must stay on GitHub-hosted runners (see ci.yml).
name: Main CI
permissions:
contents: read
on:
push:
branches: [main]
workflow_dispatch:
jobs:
test:
runs-on: page-agent-trusted
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 24
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: CI checks
run: node scripts/ci.js