]> git.openstreetmap.org Git - chef.git/blob - .github/workflows/cookstyle.yml
c82391de1f42e656dce9586a948139227569d313
[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@v1
12       with:
13         fetch-depth: 1
14     - name: Setup ruby
15       uses: actions/setup-ruby@v1
16     - name: Cache gems
17       uses: actions/cache@v1
18       with:
19         path: vendor/bundle
20         key: bundle-${{ runner.OS }}-${{ hashFiles('Gemfile.lock') }}
21         restore-keys: |
22           bundle-${{ runner.OS }}-
23     - name: Install gems
24       run: |
25         gem install bundler --version "~> 1.17"
26         bundle install --jobs 4 --retry 3 --deployment
27     - name: Run cookstyle
28       run: bundle exec cookstyle --format fuubar