From 3304cb3d43a57f3ceeb44635594606e5d88016d3 Mon Sep 17 00:00:00 2001 From: Pierre de La Morinerie Date: Wed, 24 Feb 2021 16:27:35 +0100 Subject: [PATCH] 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. --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 137d9384b..00651ac06 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,7 +55,9 @@ jobs: strategy: matrix: pattern: - - spec/controllers + - spec/controllers/*_spec.rb + - spec/controllers/[a-l]**/*_spec.rb + - spec/controllers/[m-z]**/*_spec.rb - spec/features - spec/helpers spec/lib spec/middlewares - spec/mailers spec/jobs spec/policies