From 04f008575fea2c63faae6640c8982fe9b7c4f9d0 Mon Sep 17 00:00:00 2001 From: Faizaan Gagan Date: Mon, 17 May 2021 14:00:23 +0530 Subject: [PATCH] combine rspec run with coverage report (#101) --- .github/workflows/plugin-tests.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/plugin-tests.yml b/.github/workflows/plugin-tests.yml index ce6112af..ce228136 100644 --- a/.github/workflows/plugin-tests.yml +++ b/.github/workflows/plugin-tests.yml @@ -123,15 +123,11 @@ jobs: bin/rake db:create bin/rake db:migrate - - name: Plugin RSpec + - name: Plugin RSpec with Coverage if: matrix.build_type == 'backend' && steps.check_spec.outputs.files_exists == 'true' - run: bin/rake plugin:spec[${{ github.event.repository.name }}] + run: SIMPLECOV=1 bin/rake plugin:spec[${{ github.event.repository.name }}] - name: Plugin QUnit if: matrix.build_type == 'frontend' && steps.check_qunit.outputs.files_exists == 'true' run: bundle exec rake plugin:qunit['${{ github.event.repository.name }}','1200000'] timeout-minutes: 30 - - - name: Simplecov Report - if: matrix.build_type == 'backend' - run: COVERAGE=1 bin/rake plugin:spec[${{ github.event.repository.name }}]