]> git.openstreetmap.org Git - chef.git/blob - .github/workflows/cookstyle.yml
Add initial version of prometheus cookbook
[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
12     - name: Setup ruby
13       uses: actions/setup-ruby@v1.1.1
14     - name: Cache gems
15       uses: actions/cache@v2
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