Skip to content

Commit

Permalink
ci: make some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico Bellack committed Jul 27, 2023
1 parent 3ea23a2 commit 6d004ba
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ defaults:
run:
working-directory: "bellackn.proxmox_lxc"

"on":
on:

Check warning on line 11 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / Lint w/ latest Ansible

11:1 [truthy] truthy value should be one of [false, no, true, yes]
pull_request:
push:
branches:
Expand All @@ -35,6 +35,7 @@ jobs:
key: ${{ runner.os }}-pip-latest-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-latest
- name: Create ansible.cfg
run: >
printf '[defaults]\nroles_path=./tests/requirements/:../\ncollections_paths=./tests/requirements/:../'
Expand All @@ -50,25 +51,22 @@ jobs:
pip3 install wheel --upgrade
- name: Install test dependencies
run: >
pip3 install yamllint
ansible
ansible-lint
--upgrade
run: pip3 install --upgrade yamllint ansible ansible-lint

Check failure on line 54 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / Lint w/ latest Ansible

54:66 [trailing-spaces] trailing spaces

- name: Install role requirements
run: |
pip3 install -r requirements.txt
run: pip3 install -r requirements.txt

- name: Install Galaxy requirements
run: |
ansible-galaxy install -r tests/requirements.yml -p ./tests/requirements
ansible-galaxy collection install -r tests/requirements.yml -p ./tests/requirements

Check failure on line 63 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / Lint w/ latest Ansible

63:1 [trailing-spaces] trailing spaces
- name: Run linters
run: |
yamllint .
ansible-lint
- name: Test syntax
run: |
ansible-playbook tests/test.yml -i tests/inventory --syntax-check
run: ansible-playbook tests/test.yml -i tests/inventory --syntax-check

galaxy:
name: "Ansible Galaxy import"
Expand Down
1 change: 0 additions & 1 deletion .yamllint
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ rules:
allowed-values: ['true', 'false', 'yes', 'no']

ignore: |
.travis.yml
tests/requirements/
4 changes: 1 addition & 3 deletions tests/requirements.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
---
roles:

- name: geerlingguy.pip
version: 2.0.0

collections:

- name: community.general
version: 2.0.1
version: 7.2.0

0 comments on commit 6d004ba

Please sign in to comment.