diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..962349ef --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: CI +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + ruby: [ '2.5', '2.6', '2.7' ] + name: Lint & Test with Ruby ${{ matrix.ruby }} + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + - name: Setup Ruby environment + run: | + gem install bundler + bundle install --jobs 4 --retry 3 + - name: Testing & Linting + run: bundle exec rake diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 669d36ae..00000000 --- a/.travis.yml +++ /dev/null @@ -1,25 +0,0 @@ -language: ruby -cache: bundler -dist: xenial - -bundler_args: --without guard, changelog - -matrix: - include: - - rvm: 2.3.8 - - rvm: 2.4.9 - - rvm: 2.5.7 - - rvm: 2.6.5 - - rvm: 2.7.0 - - rvm: ruby-head - allow_failures: - - rvm: ruby-head - -branches: - only: - - master - -addons: - code_climate: - repo_token: - secure: "jVI7J+yiQcD5T1YNz9eGReGf6vyp8VIGjsyMEM0HBOxrbk4iCm7P5SN5n5cJPRZNzQd175ceqcpPisvJh91oPMetzpmN+PSDPhOzxVNB4rIqQ8ohJNX2jW/VVpaobzWHAQQurC349gfi2a6l7MvgZw3RGyExkacZXdqr+Bbsc38=" diff --git a/Gemfile b/Gemfile index 19092d09..7a416e4b 100644 --- a/Gemfile +++ b/Gemfile @@ -9,7 +9,3 @@ end group :test do gem "codeclimate-test-reporter", require: nil end - -group :changelog do - gem "github_changelog_generator", "1.15.2", require: nil -end diff --git a/kitchen-vagrant.gemspec b/kitchen-vagrant.gemspec index f3c1e1e1..eec37c77 100644 --- a/kitchen-vagrant.gemspec +++ b/kitchen-vagrant.gemspec @@ -15,7 +15,7 @@ Gem::Specification.new do |gem| gem.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR).grep(/LICENSE|^lib|^support|^templates/) gem.require_paths = ["lib"] - gem.required_ruby_version = ">= 2.3" + gem.required_ruby_version = ">= 2.5" gem.add_dependency "test-kitchen", ">= 1.4", "< 3" @@ -23,5 +23,5 @@ Gem::Specification.new do |gem| gem.add_development_dependency "rake" gem.add_development_dependency "rspec", "~> 3.2" gem.add_development_dependency "simplecov", "~> 0.9" - gem.add_development_dependency "chefstyle" + gem.add_development_dependency "chefstyle", "= 1.5.1" end