Skip to content

Commit

Permalink
fix: make invalid role-name pass linter as requested
Browse files Browse the repository at this point in the history
Signed-off-by: gardar <[email protected]>
  • Loading branch information
gardar committed Apr 25, 2024
1 parent dd19793 commit 2f3b053
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .config/ansible-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
profile: production
warn_list:
- role-name # until role name is fixed on galaxy https://github.com/riemers/ansible-gitlab-runner/pull/312
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ jobs:
- powershell -ExecutionPolicy ByPass -File tests/travis-bootstrap-ansible.ps1
- wsl ansible --version
script:
- wsl mkdir -p tests/roles/riemers.gitlab_runner/
- cd tests/roles/riemers.gitlab_runner/
- wsl mkdir -p tests/roles/ansible-gitlab-runner/
- cd tests/roles/ansible-gitlab-runner/
- wsl ln -s ../../../* .
- cd ../../
- wsl ansible-playbook test.yml -i inventory --syntax-check
Expand Down
1 change: 0 additions & 1 deletion meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
galaxy_info:
author: Erik-jan Riemers
role_name: gitlab_runner
namespace: riemers
description: GitLab Runner
license: MIT
Expand Down
2 changes: 1 addition & 1 deletion tests/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
- name: Run role
hosts: localhost
roles:
- riemers.gitlab_runner
- ansible-gitlab-runner

Check failure on line 48 in tests/test.yml

View workflow job for this annotation

GitHub Actions / ansible-lint

syntax-check[specific]

the role 'ansible-gitlab-runner' was not found in /home/runner/work/ansible-gitlab-runner/ansible-gitlab-runner/tests/roles:/home/runner/.cache/ansible-compat/878622/roles:/home/runner/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/home/runner/work/ansible-gitlab-runner/ansible-gitlab-runner/tests

- name: Cleanup
hosts: localhost
Expand Down

0 comments on commit 2f3b053

Please sign in to comment.