From 18b62feafbf4173bfddc7b024335f199cd9bb4f2 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Fri, 5 Nov 2021 13:28:35 -0700 Subject: Add linting testing to 16-stable branch Signed-off-by: Tim Smith --- .github/workflows/lint.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/lint.yml 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 -- cgit v1.2.1