瀏覽代碼
Create ansible-lint.yml
avoiding common pitfalls that can easily lead to bugs or make code harder to maintain
pull/1469/head
sakkiii
4 年之前
committed by
GitHub
沒有發現已知的金鑰在資料庫的簽署中
GPG 金鑰 ID: 4AEE18F83AFDEB23
共有
1 個檔案被更改,包括
19 行新增 和
0 行删除
-
.github/workflows/ansible-lint.yml
|
|
|
@@ -0,0 +1,19 @@ |
|
|
|
name: Ansible Lint |
|
|
|
|
|
|
|
on: [push, pull_request] |
|
|
|
|
|
|
|
jobs: |
|
|
|
build: |
|
|
|
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v2 |
|
|
|
|
|
|
|
- name: Lint Ansible Playbook |
|
|
|
uses: ansible/ansible-lint-action@master |
|
|
|
with: |
|
|
|
# Paths to ansible files (i.e., playbooks, tasks, handlers etc..) |
|
|
|
targets: "./" |
|
|
|
|
|
|
|
args: "-x metadata, formatting" |