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
8 changes: 5 additions & 3 deletions .github/workflows/org-quality-gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ permissions:
jobs:
quality-gate:
name: quality-gate
uses: agiletec-inc/github-actions/.github/workflows/quality-gate.yml@ce8723bb24baea6546a3b77e1327f94fcc1c4064
uses: agiletec-inc/github-actions/.github/workflows/quality-gate.yml@1941747f4149058807fc3e10d69412508027b9bd
with:
source-ref: ce8723bb24baea6546a3b77e1327f94fcc1c4064
linux-runs-on: ${{ github.repository == 'agiletec-inc/agiletec' && 'agiletec-ci-runner' || github.event.repository.private && 'org-shared-ci-light' || 'ubuntu-latest' }}
source-ref: 1941747f4149058807fc3e10d69412508027b9bd
# Every private repository uses the isolated organization-required pool.
# Repository-specific routing would create an exception in the org gate.
linux-runs-on: ${{ github.event.repository.private && 'org-required-ci' || 'ubuntu-latest' }}
swift-runs-on: macos-latest
8 changes: 4 additions & 4 deletions tests/test_workflow_wiring.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +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_agiletec_uses_dedicated_fast_runner_and_other_private_repos_use_shared_light(self) -> None:
def test_private_repositories_use_the_organization_required_runner(self) -> None:
source = ORG_CALLER.read_text()
self.assertIn("org-shared-ci-light", source)
self.assertIn("github.repository == 'agiletec-inc/agiletec'", source)
self.assertIn("'agiletec-ci-runner'", source)
self.assertIn("'org-required-ci'", source)
self.assertNotIn("github.repository", source)
self.assertNotIn("agiletec-ci-runner", source)

def test_ci_discovers_all_contract_test_modules(self) -> None:
source = CI.read_text()
Expand Down