Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ jobs:
lint:
name: Lint & Type Check
runs-on: [self-hosted, Linux, X64]
# Do not run untrusted fork PR code on the self-hosted runner.
if: >-
github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name == github.repository
steps:
- name: Checkout code
uses: actions/checkout@v6
Expand Down Expand Up @@ -77,6 +81,10 @@ jobs:
test:
name: Test
runs-on: [self-hosted, Linux, X64]
# Do not run untrusted fork PR code on the self-hosted runner.
if: >-
github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name == github.repository
steps:
- name: Checkout code
uses: actions/checkout@v6
Expand Down Expand Up @@ -110,6 +118,10 @@ jobs:
build:
name: Build
runs-on: [self-hosted, Linux, X64]
# Do not run untrusted fork PR code on the self-hosted runner.
if: >-
github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name == github.repository
steps:
- name: Checkout code
uses: actions/checkout@v6
Expand Down Expand Up @@ -189,7 +201,11 @@ jobs:
name: CI Summary
runs-on: [self-hosted, Linux, X64]
needs: [lint, test, build]
if: always()
# always() but still gated to same-repo events (no fork PRs on self-hosted)
if: >-
always() &&
(github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name == github.repository)
steps:
- name: Check results
run: |
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/cli-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ jobs:
public-tests:
name: Public CLI Tests
runs-on: [self-hosted, Linux, X64]
# Do not run untrusted fork PR code on the self-hosted runner.
if: >-
github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name == github.repository
steps:
- name: Checkout
uses: actions/checkout@v6
Expand Down Expand Up @@ -216,6 +220,10 @@ jobs:
build-test:
name: Build CLI from Source
runs-on: [self-hosted, Linux, X64]
# Do not run untrusted fork PR code on the self-hosted runner.
if: >-
github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name == github.repository
steps:
- name: Checkout
uses: actions/checkout@v6
Expand Down