maplibre-gl-geocoder
maplibre-gl-geocoder copied to clipboard
Run tests in CI
Currently we don't run any tests in CI:
https://github.com/maplibre/maplibre-gl-geocoder/blob/cf3de577a3f0acc34da9e421e1b0e00afe330a58/.github/workflows/publish.yml#L23-L31
In the current situation, we might end up publishing something broken. I would recommend to run the tests right before npm publish and create a separate github actions workflow which runs the tests against all pull requests.
Running the tests in CI will also help managing dependabot pull requests. In GL JS we have the policy that we merge patch bumps if CI passes...
While we're improving our CI, we can explore some additional ideas for CI.
- We can run our
testworkflow on pull request tomain testworkflow runs automatically for pull requests authored by write-access contributorstestworkflow can run on PRs by other contributors by adding arun-testslabel (action can also clean up this label)- Merging to
mainis blocked iftestworkflow fails publishworkflow only runs iftestworkflow completes successfully- We can set up concurrency for
testworkflow so only one job is run at a time for a pull request
Tests are running as part of the CI, if there's anything else, feel free to open a different issue.