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
6 changes: 3 additions & 3 deletions .github/workflows/org-quality-gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 3 additions & 2 deletions tests/test_workflow_wiring.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down