-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
da16f97
commit 669df78
Showing
4 changed files
with
72 additions
and
86 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,72 @@ | ||
--- | ||
name: Lint | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
|
||
ansible-lint: | ||
name: Ansible | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out the codebase | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python. | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install ansible-lint | ||
run: pip3 install ansible-lint ansible | ||
|
||
- name: Version check | ||
run: | | ||
ansible --version | ||
ansible-lint --version | ||
- name: Run ansible-lint | ||
run: ansible-lint | ||
|
||
yaml-lint: | ||
name: YAML | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out the codebase | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python. | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install yamllint | ||
run: pip3 install yamllint | ||
|
||
- name: Version check | ||
run: | | ||
yamllint --version | ||
- name: Run yamllint | ||
run: yamllint . | ||
|
||
vale-lint: | ||
name: Vale | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out the codebase | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install vale | ||
run: snap install vale | ||
|
||
- name: Version check | ||
run: | | ||
vale --version | ||
- name: Run yamllint | ||
run: vale --glob='*.md' ./docs ./README.md |