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:
@@ -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
|
||||
Reference in New Issue
Block a user