-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Delete .travis.yml * Adds YAML lint * Adds Markdown lint * Adds Github Actions CI * Add actions build badge Co-authored-by: Stephen Nelson <[email protected]>
- Loading branch information
Showing
8 changed files
with
117 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
--- | ||
name: ci | ||
|
||
"on": | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
delivery: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
- name: Install Chef Workstation | ||
uses: actionshub/chef-install@main | ||
- name: Run Chef Delivery | ||
run: chef exec delivery local all | ||
env: | ||
CHEF_LICENSE: accept-no-persist | ||
|
||
markdownlint-cli: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
- name: Run markdownlint-cli | ||
uses: nosborn/[email protected] | ||
with: | ||
files: . | ||
config_file: ".markdownlint.yaml" | ||
|
||
yamllint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
- name: Run YAML Lint | ||
uses: actionshub/yamllint@main | ||
|
||
integration: | ||
needs: [delivery, markdownlint-cli, yamllint] | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
os: | ||
- 'centos-7' | ||
- 'centos-8' | ||
- 'debian-10' | ||
- 'debian-9' | ||
- 'ubuntu-1804' | ||
- 'ubuntu-2004' | ||
suite: | ||
- 'authoritative-multi' | ||
- 'authoritative-postgres' | ||
- 'recursor-multi' | ||
fail-fast: false | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
- name: Install Chef Workstation | ||
uses: actionshub/chef-install@main | ||
- name: Run Test Kitchen | ||
uses: actionshub/test-kitchen@main | ||
env: | ||
CHEF_LICENSE: accept-no-persist | ||
KITCHEN_LOCAL_YAML: kitchen.yml | ||
with: | ||
suite: ${{ matrix.suite }} | ||
os: ${{ matrix.os }} | ||
- name: Debug | ||
if: failure() | ||
run: | | ||
set -x | ||
sudo journalctl -l --since today | ||
KITCHEN_LOCAL_YAML=kitchen.yml /usr/bin/kitchen exec \ | ||
${{ matrix.suite }}-${{ matrix.os }} -c "journalctl -l" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
default: true | ||
line-length: false |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
extends: default | ||
rules: | ||
document-start: false | ||
line-length: | ||
max: 256 | ||
level: warning |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.