Skip to content

Commit

Permalink
Move linting from Travis CI to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
stephdewit committed Jan 15, 2024
1 parent 2e5f245 commit f653574
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Ansible lint
on: push
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run linter
uses: ansible/ansible-lint@v6
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/

install:
- pip install ansible ansible-lint
- pip install ansible

# I had to temporary disable this cleanup in 'before_script'
# as installation doesn't work as expected
Expand All @@ -21,7 +21,6 @@ install:
script:
# Check syntax
- ansible-playbook -i "localhost," test.yml --syntax-check
- ansible-lint .

# First run
- ansible-playbook -i "localhost," -c local test.yml --extra-vars "ansible_python_interpreter=auto nvm_install_path=~/.nvmbis"
Expand Down

0 comments on commit f653574

Please sign in to comment.