ci: split controller tests into 3 groups

Ideally we'd like:

- One group with `spec/controllers/api/**/*_spec.rb` files
- One group with everything else

But due to the way globbing works (and doesn't allow to say "Files NOT
starting with `api`"), this looks like a sensible and future-proof
configuration.
This commit is contained in:
Pierre de La Morinerie 2021-02-24 16:27:35 +01:00
parent 4c66d2d206
commit 3304cb3d43

View file

@ -55,7 +55,9 @@ jobs:
strategy: strategy:
matrix: matrix:
pattern: pattern:
- spec/controllers - spec/controllers/*_spec.rb
- spec/controllers/[a-l]**/*_spec.rb
- spec/controllers/[m-z]**/*_spec.rb
- spec/features - spec/features
- spec/helpers spec/lib spec/middlewares - spec/helpers spec/lib spec/middlewares
- spec/mailers spec/jobs spec/policies - spec/mailers spec/jobs spec/policies