From cbb40a9fb961745929df88ea5383dc84684352ea Mon Sep 17 00:00:00 2001 From: kazuki nakai Date: Sat, 25 Jul 2026 06:46:56 +0900 Subject: [PATCH] ci: reserve agiletec fast required runner --- .github/workflows/org-quality-gate.yml | 6 +++--- tests/test_workflow_wiring.py | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/org-quality-gate.yml b/.github/workflows/org-quality-gate.yml index c6d1411..45e53e9 100644 --- a/.github/workflows/org-quality-gate.yml +++ b/.github/workflows/org-quality-gate.yml @@ -15,8 +15,8 @@ permissions: jobs: quality-gate: name: quality-gate - uses: agiletec-inc/github-actions/.github/workflows/quality-gate.yml@0cbb5acf07f1992b140d3c75e9e0da314378c74f + uses: agiletec-inc/github-actions/.github/workflows/quality-gate.yml@ce8723bb24baea6546a3b77e1327f94fcc1c4064 with: - source-ref: 0cbb5acf07f1992b140d3c75e9e0da314378c74f - linux-runs-on: ${{ github.event.repository.private && 'org-shared-ci-light' || 'ubuntu-latest' }} + source-ref: ce8723bb24baea6546a3b77e1327f94fcc1c4064 + linux-runs-on: ${{ github.repository == 'agiletec-inc/agiletec' && 'agiletec-ci-runner' || github.event.repository.private && 'org-shared-ci-light' || 'ubuntu-latest' }} swift-runs-on: macos-latest diff --git a/tests/test_workflow_wiring.py b/tests/test_workflow_wiring.py index 2c71bf8..72fe5cc 100644 --- a/tests/test_workflow_wiring.py +++ b/tests/test_workflow_wiring.py @@ -48,10 +48,11 @@ def test_org_caller_grants_read_only_checks_and_actions_access(self) -> None: self.assertRegex(source, r"(?m)^\s*actions:\s*read\s*$") self.assertRegex(source, r"(?m)^\s*checks:\s*read\s*$") - def test_private_repositories_use_org_shared_light_runner(self) -> None: + def test_agiletec_uses_dedicated_fast_runner_and_other_private_repos_use_shared_light(self) -> None: source = ORG_CALLER.read_text() self.assertIn("org-shared-ci-light", source) - self.assertNotIn("agiletec-ci-runner", source) + self.assertIn("github.repository == 'agiletec-inc/agiletec'", source) + self.assertIn("'agiletec-ci-runner'", source) def test_ci_discovers_all_contract_test_modules(self) -> None: source = CI.read_text()