diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index da77e42..5abe1b1 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -7,16 +7,12 @@ name: Code Coverage -on: [push, workflow_dispatch, pull_request] +on: [pull_request] permissions: contents: read - jobs: test: - permissions: - checks: write - contents: write runs-on: ubuntu-20.04 strategy: matrix: @@ -34,11 +30,8 @@ jobs: DEBUG: true - name: Run tests run: bundle exec rake - - name: Code Coverage - uses: joshmfrankel/simplecov-check-action@main - with: - check_job_name: Code Coverage - github_token: ${{ secrets.GITHUB_TOKEN }} - minimum_suite_coverage: 100 + lint: + runs-on: ubuntu-20.04 + steps: - name: Lint uses: standardrb/standard-ruby-action@v1 diff --git a/cached_resource.gemspec b/cached_resource.gemspec index a7371ff..9d1e1f2 100644 --- a/cached_resource.gemspec +++ b/cached_resource.gemspec @@ -26,6 +26,6 @@ Gem::Specification.new do |s| s.add_development_dependency "rake" s.add_development_dependency "rspec" s.add_development_dependency "simplecov", "~> 0.22.0" - s.add_development_dependency "timecop", "~> 0.9.10" s.add_development_dependency "standard", "~> 1.39", ">= 1.39.1" + s.add_development_dependency "timecop", "~> 0.9.10" end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 86a757b..84ab872 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,4 +1,5 @@ require "simplecov" + SimpleCov.start do add_filter "/spec/" add_group "Lib", "lib/"