From b2e08edc22f7643716b90b73b9568ed257762072 Mon Sep 17 00:00:00 2001 From: Jean Luis Urena Date: Tue, 9 Jul 2024 16:55:24 -0400 Subject: [PATCH] Add code coverage --- .github/workflows/ruby.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index a9e2128..da77e42 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -14,6 +14,9 @@ permissions: jobs: test: + permissions: + checks: write + contents: write runs-on: ubuntu-20.04 strategy: matrix: @@ -31,11 +34,11 @@ jobs: DEBUG: true - name: Run tests run: bundle exec rake - lint: - runs-on: ubuntu-20.04 - permissions: - checks: write - contents: write - steps: - - name: Standard Ruby + - name: Code Coverage + uses: joshmfrankel/simplecov-check-action@main + with: + check_job_name: Code Coverage + github_token: ${{ secrets.GITHUB_TOKEN }} + minimum_suite_coverage: 100 + - name: Lint uses: standardrb/standard-ruby-action@v1