From 756b3a6ee59df62ee2125559956d8f170231d944 Mon Sep 17 00:00:00 2001 From: Pau Perez Date: Wed, 31 Mar 2021 08:56:58 +0200 Subject: [PATCH] Upload coverage report after every CI job --- .github/workflows/build.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e2523d7d42..3f49f389d1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -51,6 +51,9 @@ jobs: - name: Run controller tests run: bundle exec rspec --profile -- spec/controllers spec/serializers + - name: Codecov + uses: codecov/codecov-action@v1.3.1 + test-models: runs-on: ubuntu-18.04 services: @@ -92,6 +95,9 @@ jobs: - name: Run tests run: bundle exec rspec --profile -- spec/models + - name: Codecov + uses: codecov/codecov-action@v1.3.1 + test-admin-features-1: runs-on: ubuntu-18.04 services: @@ -133,6 +139,9 @@ jobs: - name: Run admin feature tests run: bundle exec rspec --profile -- spec/features/admin/[a-o0-9]*_spec.rb + - name: Codecov + uses: codecov/codecov-action@v1.3.1 + test-admin-features-2: runs-on: ubuntu-18.04 services: @@ -174,6 +183,9 @@ jobs: - name: Run admin feature tests run: bundle exec rspec --profile -- spec/features/admin/[p-z]*_spec.rb + - name: Codecov + uses: codecov/codecov-action@v1.3.1 + test-consumer-features: runs-on: ubuntu-18.04 services: @@ -215,6 +227,9 @@ jobs: - name: Run consumer feature tests run: bundle exec rspec --profile -- spec/features/consumer + - name: Codecov + uses: codecov/codecov-action@v1.3.1 + test-engines-etc: runs-on: ubuntu-18.04 services: @@ -299,3 +314,6 @@ jobs: - name: Run admin feature folders, engines, lib run: bundle exec rspec --profile --pattern "engines/*/spec/{,/*/**}/*_spec.rb,spec/features/admin/*/*_spec.rb,spec/lib/{,/*/**}/*_spec.rb" + + - name: Codecov + uses: codecov/codecov-action@v1.3.1