firebase / extensions

Source code for official Firebase extensions
https://firebase.google.com/products/extensions
Apache License 2.0
882 stars 373 forks source link

ci(*): more efficient testing #2068

Open cabljac opened 2 months ago

cabljac commented 2 months ago

Currently our CI builds ALL the extensions and runs ALL the tests, even on pull requests.

This proposed workflow filters on changes in the PR, and only runs tests on extensions which have changes.

There are still some small optimisations i'd like to make eventually, but:

  1. We can still run all the tests on pushes to next. In PRs to next we can just test the PR's changes.
  2. Currently test logs are super noisy, this slows us down as it's actually hard in the github action logs to work out which tests are failing.
  3. This also runs the tests in parallel, so it'd (potentiall) be quicker even if you made changes in every extension.