From 355331322de7264211ce793c85960a3353a57632 Mon Sep 17 00:00:00 2001 From: Jean Luis Urena Date: Tue, 9 Jul 2024 17:11:44 -0400 Subject: [PATCH] [ISSUE-68] Fix github ci for cross-repos --- .github/workflows/ruby.yml | 12 +----------- cached_resource.gemspec | 2 +- spec/spec_helper.rb | 1 + 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index da77e42..503d4ec 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,5 @@ 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 - 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/"