-
Notifications
You must be signed in to change notification settings - Fork 140
60 lines (60 loc) · 1.39 KB
/
ci.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
52
53
54
55
56
57
58
59
60
name: Continuous Integration
on:
push:
branches: [main]
pull_request:
jobs:
ruby:
strategy:
fail-fast: false
matrix:
ruby: ['2.7', '3.0', '3.1']
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install dependencies
run: bundle install
- name: Run rspec
run: ./scripts/run_chefspec
- name: Run cookstyle
run: ./scripts/run_cookstyle
kitchen:
strategy:
fail-fast: false
matrix:
os:
- centos-7
- centos-stream-8
- ubuntu-1804
- ubuntu-2004
- debian-9
- debian-10
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Chef
uses: actionshub/[email protected]
with:
project: chef-workstation
version: 20.11.180
- name: Run Kitchen
uses: actionshub/[email protected]
with:
suite: default
os: ${{ matrix.os }}
env:
CHEF_LICENSE: accept-no-persist
CHEF_VERSION: 16.18.0
shellcheck:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run Shellcheck
uses: ludeeus/[email protected]