forked from chef/chef-server
-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (34 loc) · 1.04 KB
/
ctl-cookbook-testing.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
---
name: ctl-cookbook-testing
'on':
pull_request:
push:
branches:
- main
jobs:
cookstyle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
working-directory: omnibus/files/private-chef-cookbooks/private-chef/
ruby-version: 2.6
bundler-cache: true
- uses: r7kamura/rubocop-problem-matchers-action@v1 # this shows the failures in the PR
- name: run cookstyle
run: bundle exec cookstyle .
working-directory: omnibus/files/private-chef-cookbooks/private-chef/
chefspec:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
working-directory: omnibus/files/private-chef-cookbooks/private-chef/
ruby-version: 2.6
bundler-cache: true
- uses: r7kamura/rubocop-problem-matchers-action@v1 # this shows the failures in the PR
- name: run chefspec
run: bundle exec rspec
working-directory: omnibus/files/private-chef-cookbooks/private-chef/