Skip to content

Commit 19ec0eb

Browse files
committed
Migrate to sous CI config
1 parent 7b64755 commit 19ec0eb

File tree

1 file changed

+37
-26
lines changed

1 file changed

+37
-26
lines changed

.github/workflows/ci.yml

+37-26
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
name: ci
33

4-
on:
4+
"on":
55
pull_request:
66
push:
77
branches:
8-
- master
8+
- main
99

1010
jobs:
1111
delivery:
@@ -18,47 +18,58 @@ jobs:
1818
env:
1919
CHEF_LICENSE: accept-no-persist
2020

21-
dokken:
22-
needs: [delivery]
21+
yamllint:
2322
runs-on: ubuntu-latest
23+
steps:
24+
- name: Check out code
25+
uses: actions/checkout@main
26+
- name: Run yaml Lint
27+
uses: actionshub/yamllint@main
28+
29+
mdl:
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: Check out code
33+
uses: actions/checkout@main
34+
- name: Run Markdown Lint
35+
uses: actionshub/markdownlint@main
36+
37+
integration:
38+
needs: [mdl, yamllint, delivery]
39+
runs-on: macos-latest
2440
strategy:
2541
matrix:
2642
os:
27-
- 'amazonlinux-2'
28-
- 'debian-9'
29-
- 'debian-10'
30-
- 'centos-6'
31-
- 'centos-7'
32-
- 'centos-8'
33-
- 'centos-stream-8'
34-
- 'fedora-latest'
35-
- 'ubuntu-1604'
36-
- 'ubuntu-1804'
37-
- 'ubuntu-2004'
38-
43+
- centos-7
44+
- centos-8
45+
- centos-stream-8
46+
# - fedora-latest # TODO: reenable once https://github.com/chef/bento/issues/1333 is fixed
47+
- debian-10
48+
- ubuntu-1804
49+
- ubuntu-2004
3950
suite:
40-
- 'all-tables'
41-
- 'install-and-remove'
42-
- 'rule-line-number'
43-
- 'rule-line'
44-
- 'rules'
51+
- enforcing
52+
- permissive
53+
- disabled
54+
exclude:
55+
- os: ubuntu-1804
56+
suite: enforcing
4557
fail-fast: false
4658

4759
steps:
4860
- name: Check out code
49-
uses: actions/checkout@main
61+
uses: actions/checkout@v2
5062
- name: Install Chef
5163
uses: actionshub/chef-install@main
52-
- name: Dokken
53-
uses: actionshub/kitchen-dokken@main
64+
- name: test-kitchen
65+
uses: actionshub/test-kitchen@main
5466
env:
5567
CHEF_LICENSE: accept-no-persist
56-
KITCHEN_LOCAL_YAML: kitchen.dokken.yml
5768
with:
5869
suite: ${{ matrix.suite }}
5970
os: ${{ matrix.os }}
6071
- name: Print debug output on failure
61-
if: failure()
72+
if: ${{ failure() }}
6273
run: |
6374
set -x
6475
sudo journalctl -l --since today

0 commit comments

Comments
 (0)