]> git.openstreetmap.org Git - chef.git/blob - .github/workflows/cookstyle.yml
Bump cookstyle from 7.17.0 to 7.18.0
[chef.git] / .github / workflows / cookstyle.yml
1 name: Cookstyle
2 on:
3   - push
4   - pull_request
5 jobs:
6   cookstyle:
7     name: Cookstyle
8     runs-on: ubuntu-latest
9     steps:
10     - name: Check out code
11       uses: actions/checkout@v2.3.4
12     - name: Setup ruby
13       uses: actions/setup-ruby@v1.1.3
14     - name: Cache gems
15       uses: actions/cache@v2.1.6
16       with:
17         path: vendor/bundle
18         key: bundle-${{ runner.OS }}-${{ hashFiles('Gemfile.lock') }}
19         restore-keys: |
20           bundle-${{ runner.OS }}-
21     - name: Install gems
22       run: |
23         gem install bundler
24         bundle config set deployment true
25         bundle install --jobs 4 --retry 3
26     - name: Run cookstyle
27       run: bundle exec cookstyle --format fuubar