bcgov / cas-reporting

This is for the Clean Growth Digital Services team for work related to reporting.
Apache License 2.0
0 stars 0 forks source link

Setup CI to run essential task for PR but all tasks on deploy to test/prod #264

Open joshgamache opened 1 week ago

joshgamache commented 1 week ago

Describe the task

CI turnaround time on PRs can take a long time to run (~20 minutes). Leveraging Nx affected, the process can be reduced to the least-required for tests/builds/checks (PR 1730 added in Nx affected in CI. Card bcgov/cas-reporting#232). e2e tests can take a lot of that time and we can try to minimize those on PRs as well. With ShipIt, we could register a webhook to trigger a GitHub workflow that runs all CI processes in full when pushing to Test.

Optional: We could write a workflow to run E2E against the test namespace (which is near-identical to prod) instead of a CI container. We could then set this as a pre-run task in ShipIt for prod deployment. A similar process might be worth it for dev->test.

Additional info & prior art

Acceptance Criteria