From b5c56cda02db9a5dc3acef39b5a5f0df86fe029d Mon Sep 17 00:00:00 2001 From: Ashique P S Date: Mon, 20 Mar 2023 12:39:36 +0530 Subject: [PATCH] Github workflow fixes and updated the required ruby version to 2.7 Signed-off-by: Ashique P S --- .github/workflows/unit.yml | 4 ++-- cookstyle.gemspec | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index 698cbe9b..ba865f76 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -13,10 +13,10 @@ jobs: fail-fast: false matrix: os: [windows-2019, ubuntu-latest] - ruby: ['2.5', '2.6', '2.7', '3.0', '3.1'] + ruby: ['2.7', '3.0', '3.1'] runs-on: ${{ matrix.os }} env: - BUNDLE_WITHOUT: profiling,debug,docs + BUNDLE_WITHOUT: profiling debug docs name: Unit test on ${{ matrix.os }} with Ruby ${{ matrix.ruby }} steps: - uses: actions/checkout@v2 diff --git a/cookstyle.gemspec b/cookstyle.gemspec index 50b78217..c53a1f9d 100644 --- a/cookstyle.gemspec +++ b/cookstyle.gemspec @@ -11,7 +11,7 @@ Gem::Specification.new do |spec| spec.summary = 'Cookstyle is a code linting tool that helps you to write better Chef Infra cookbooks by detecting and automatically correcting style, syntax, and logic mistakes in your code.' spec.license = 'Apache-2.0' spec.homepage = 'https://docs.chef.io/workstation/cookstyle/' - spec.required_ruby_version = '>= 2.5' + spec.required_ruby_version = '>= 2.7' # the gemspec and Gemfile are necessary for appbundling of the gem spec.files = %w(LICENSE cookstyle.gemspec Gemfile) + Dir.glob('{lib,bin,config}/**/*')