summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2021-11-05 13:31:06 -0700
committerGitHub <noreply@github.com>2021-11-05 13:31:06 -0700
commit836d6eb16972c6856074498f9fb98b425564e1f6 (patch)
treeb3c2285bbdec66f81fd28b262e62ada81b41a746
parent06d9531c59dca591c6015f204de7e3eb1c4cba9c (diff)
parent18b62feafbf4173bfddc7b024335f199cd9bb4f2 (diff)
downloadohai-836d6eb16972c6856074498f9fb98b425564e1f6.tar.gz
Merge pull request #1712 from chef/gha_16
Add linting testing to 16-stable branch
-rw-r--r--.github/workflows/lint.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
new file mode 100644
index 00000000..49e80e93
--- /dev/null
+++ b/.github/workflows/lint.yml
@@ -0,0 +1,21 @@
+---
+name: lint
+
+'on':
+ pull_request:
+ push:
+ branches:
+ - main
+ - 16-stable
+
+jobs:
+ chefstyle:
+ runs-on: ubuntu-latest
+ 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 chefstyle