Skip to content

Commit 6242337

Browse files
committed
👷 Improve CI
- Fix crash with some collections - Add a YAML linter - Change workflow events
1 parent 07a57ec commit 6242337

File tree

3 files changed

+47
-17
lines changed

3 files changed

+47
-17
lines changed

.github/workflows/ansible-lint.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
3+
name: ci
4+
'on':
5+
pull_request:
6+
push:
7+
branches:
8+
- master
9+
10+
jobs:
11+
12+
yaml-lint:
13+
name: YAML Lint
14+
runs-on: ubuntu-latest
15+
steps:
16+
17+
- name: Fetch code
18+
uses: actions/checkout@v3
19+
20+
- name: Set up Python 3.
21+
uses: actions/setup-python@v2
22+
with:
23+
python-version: '3.x'
24+
25+
- name: Install test dependencies.
26+
run: pip3 install yamllint
27+
28+
- name: Lint code.
29+
run: |
30+
yamllint .
31+
32+
ansible-lint:
33+
name: Ansible Lint
34+
runs-on: ubuntu-latest
35+
36+
steps:
37+
- name: Fetch code
38+
uses: actions/checkout@v3
39+
with:
40+
fetch-depth: 0
41+
42+
- name: Run ansible-lint
43+
uses: ansible/ansible-lint-action@v6.15.0

requirements.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
3+
collections:
4+
- community.general

0 commit comments

Comments
 (0)