-
Notifications
You must be signed in to change notification settings - Fork 4
51 lines (47 loc) · 1.28 KB
/
main.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
40
41
42
43
44
45
46
47
48
49
50
51
---
name: ci
"on":
pull_request:
push:
branches: [main]
jobs:
rspec:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Install Chef
uses: actionshub/[email protected]
- name: Install Gems
run: chef gem install -N "${{ inputs.gems }}"
if: ${{ github.event.inputs.gems != '' }}
env:
CHEF_LICENSE: accept-no-persist
- name: Run RSpec
run: chef exec rspec -f j -o tmp/rspec_results.json -f p
env:
CHEF_LICENSE: accept-no-persist
- name: RSpec Report
uses: SonicGarden/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
json-path: tmp/rspec_results.json
if: always()
cookstyle:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Install Chef
uses: actionshub/[email protected]
- name: Run Cookstyle
run: chef exec cookstyle --display-cop-names --extra-details
env:
CHEF_LICENSE: accept-no-persist
yamllint:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Run yaml Lint
uses: actionshub/[email protected]