Skip to content

Commit

Permalink
Merge pull request #200 from chef/tweaks
Browse files Browse the repository at this point in the history
Move Chefstyle to GitHub Actions
  • Loading branch information
tas50 authored May 24, 2021
2 parents 619aaa2 + c88bb36 commit 6ac0759
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 9 deletions.
8 changes: 0 additions & 8 deletions .expeditor/verify.pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,6 @@ expeditor:
timeout_in_minutes: 30

steps:
- label: lint-chefstyle
command:
- .expeditor/run_linux_tests.sh "rake style"
expeditor:
executor:
docker:
image: ruby:2.7-buster

- label: run-specs-ruby-2.7
command:
- .expeditor/run_linux_tests.sh rspec
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: lint

"on":
pull_request:
push:
branches:
- master

jobs:
chefstyle:
runs-on: ubuntu-latest
env:
BUNDLE_WITHOUT: ruby_shadow:omnibus_package
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- uses: r7kamura/rubocop-problem-matchers-action@v1 # this shows the failures in the PR
- run: bundle exec rake style
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ group :development do
gem "rspec", "~> 3.0"
end


# Allow Travis to run tests with different dependency versions
if ENV["GEMFILE_MOD"]
puts ENV["GEMFILE_MOD"]
Expand Down

0 comments on commit 6ac0759

Please sign in to comment.