diff --git a/.github/workflows/dylint.yml b/.github/workflows/dylint.yml index 1086b55f..64f020bd 100644 --- a/.github/workflows/dylint.yml +++ b/.github/workflows/dylint.yml @@ -13,6 +13,10 @@ on: default: "" pull_request: branches: [main] + # setup-soldr skips cache uploads on PRs. A main run seeds the shared + # Dylint compile cache that subsequent PRs are allowed to restore. + push: + branches: [main] # Auto-cancel superseded PR runs: pushing again to a feature branch # supersedes the in-flight run instead of queueing behind it. Non-PR diff --git a/ci/test_fractional_workflows.py b/ci/test_fractional_workflows.py index 44323632..d669ff3b 100644 --- a/ci/test_fractional_workflows.py +++ b/ci/test_fractional_workflows.py @@ -45,6 +45,7 @@ def test_full_matrix_matches_every_supported_board(self): self.assertEqual("./.github/workflows/dylint.yml", full["jobs"]["dylint"]["uses"]) self.assertNotIn("run_full", full["jobs"]["dylint"]["with"]) dylint = self.load("dylint.yml") + self.assertEqual(["main"], dylint[True]["push"]["branches"]) self.assertEqual("Dylint policy", dylint["jobs"]["policy"]["name"]) self.assertNotIn("if", dylint["jobs"]["dylint"]) self.assertEqual("ubuntu-latest", dylint["jobs"]["dylint"]["runs-on"])