From 0e41a733c37d39c595bff0c5df7ee280fbd1b641 Mon Sep 17 00:00:00 2001 From: Jimmy Date: Thu, 8 Apr 2021 00:49:13 +0800 Subject: [PATCH] try again --- .github/workflows/spec.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/spec.yml b/.github/workflows/spec.yml index 50387eef..b766c03e 100644 --- a/.github/workflows/spec.yml +++ b/.github/workflows/spec.yml @@ -29,7 +29,7 @@ jobs: RAILS_ENV: test strategy: matrix: - suite: [models, features, controllers, ability] + suite: [models, features, controllers, ability, leftovers] steps: - uses: actions/checkout@v2 - uses: ruby/setup-ruby@v1 @@ -42,9 +42,11 @@ jobs: bundle exec rake db:setup --trace bundle exec bin/rails webdrivers:chromedriver:update - name: spec/${{ matrix.suite }} + if: ${{ matrix.suite }} != 'leftovers' run: bundle exec rspec spec/${{ matrix.suite }} - name: spec/leftovers - run: bundle exec rspec --exclude-pattern "{spec/{models, features, controllers, ability}/**/*_spec.rb, spec/datatables/**/*_spec.rb}" + if: ${{ matrix.suite }} == 'leftovers' + run: bundle exec rspec --exclude-pattern "spec/{models, features, controllers, ability}/**/*_spec.rb, spec/datatables/**/*_spec.rb" - name: coverage upload ${{ matrix.suite }} uses: codacy/codacy-coverage-reporter-action@master if: github.ref == 'refs/heads/master'