From 89a679b428220264fbb014761920f9ca50917b2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marius=20B=C4=82LTEANU?= Date: Wed, 19 Aug 2026 00:51:54 +0300 Subject: [PATCH] Add SimpleCov coverage to Github Actions test workflow diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ac1943d5e..d303156ae 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,6 +8,9 @@ jobs: name: test ${{matrix.db}} ruby-${{ matrix.ruby }} runs-on: ubuntu-latest + env: + COVERAGE: ${{ matrix.ruby == '4.0' && matrix.db == 'sqlite3' && 'true' || '' }} + strategy: matrix: ruby: ['3.2', '3.3', '3.4', '4.0'] @@ -67,6 +70,14 @@ jobs: run: | bin/rails test:autoload + - name: Upload coverage report + if: always() && matrix.ruby == '4.0' && matrix.db == 'sqlite3' + uses: actions/upload-artifact@v7 + with: + name: coverage-report + path: coverage + if-no-files-found: ignore + system-tests: name: system test runs-on: ubuntu-latest -- 2.50.1 (Apple Git-155)