From d60ff088d802f040d1b88132b91fd6af4a5a9ca3 Mon Sep 17 00:00:00 2001 From: Andrei Makarov Date: Tue, 27 Aug 2024 12:43:49 +0300 Subject: [PATCH] Introduce codacy integration for additional test coverage reports --- .github/workflows/test.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f2d299e..1c0721d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,14 +7,14 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby: [ '2.7', '3.0', '3.1', '3.2', jruby, truffleruby ] + ruby: [ '2.7', '3.0', '3.1', '3.2', '3.3', jruby, truffleruby ] steps: - uses: actions/checkout@v3 - uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} bundler-cache: true - - run: bundle exec rspec --format p --pattern "spec/**/*_spec.rb" + - run: bundle exec rspec --format p coverage: runs-on: ubuntu-latest @@ -22,9 +22,13 @@ jobs: - uses: actions/checkout@v3 - uses: ruby/setup-ruby@v1 with: - ruby-version: 3.2 + ruby-version: 3.3 bundler-cache: true - - run: bundle exec rspec --format p --require support/simplecov --pattern "spec/**/*_spec.rb" + - run: bundle exec rspec --format p --require support/simplecov - uses: codecov/codecov-action@v3 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + - uses: codacy/codacy-coverage-reporter-action@v1.3.0 + with: + project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} + coverage-reports: "coverage/coverage.xml"