Klimatbyran / klimatkollen

https://www.klimatkollen.se
MIT License
45 stars 48 forks source link

Ensure tests are run for PRs targeting `staging` to prevent regressions #666

Open Greenheart opened 5 months ago

Greenheart commented 5 months ago

Several times, we've been caught by failing tests only when merging to main (which is before deploying to production).

It would save a lot of time and frustration if tests were run against PRs targeting staging too, to catch these errors as early as possible and making production deployments easier.

To fix this, we probably just need to add staging to the list of target branches in https://github.com/Klimatbyran/klimatkollen/blob/392fb47dde4e56e51b902c7cd4ebe10b4fe876ca/.github/workflows/pr_check.yml#L5-L7