-
Notifications
You must be signed in to change notification settings - Fork 113
39 lines (36 loc) · 1 KB
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
name: lint
'on':
pull_request:
push:
branches:
- main
paths-ignore:
- 'docs-chef-io'
jobs:
chefstyle-supermarket:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
working-directory: src/supermarket
ruby-version: 3.1.2
bundler-cache: true
- uses: r7kamura/rubocop-problem-matchers-action@v1 # this shows the failures in the PR
- name: run chefstyle
run: bundle exec chefstyle
working-directory: src/supermarket
chefstyle-fieri:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
working-directory: src/supermarket/engines/fieri
ruby-version: 3.1.2
bundler-cache: true
- uses: r7kamura/rubocop-problem-matchers-action@v1 # this shows the failures in the PR
- name: run chefstyle
run: bundle exec chefstyle --ignore-parent-exclusion
working-directory: src/supermarket/engines/fieri