Skip to content

Commit dc82134

Browse files
committed
CI: Use ansible-lint<6
By default GH action provider uses <5 which fails on rich. Rework to not use GH action provider which builds a Docker image during runtime, pip install approach is faster.
1 parent 7602882 commit dc82134

File tree

4 files changed

+32
-27
lines changed

4 files changed

+32
-27
lines changed

.ansible-lint

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
skip_list:
3+
- no-changed-when

.github/workflows/ansible.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
name: Tests
3+
4+
# Controls when the action will run.
5+
on:
6+
pull_request:
7+
push:
8+
branches:
9+
- master
10+
11+
jobs:
12+
lint:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
fail-fast: false
16+
steps:
17+
# Checks-out the repository under $GITHUB_WORKSPACE, so it's accessible to the job
18+
- uses: actions/checkout@v2
19+
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install -r test-requirements.txt
24+
25+
- name: Linting code
26+
run: |
27+
ansible-lint -v --force-color

.github/workflows/main.yml

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

test-requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ansible>=2.9
2+
ansible-lint<6

0 commit comments

Comments
 (0)