From f653574d7cebe147d12f6e3bbfa652ad053edfe5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20de=20Wit?= Date: Mon, 15 Jan 2024 19:11:55 +0100 Subject: [PATCH] Move linting from Travis CI to GitHub Actions --- .github/workflows/lint.yaml | 11 +++++++++++ .travis.yml | 3 +-- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/lint.yaml diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 0000000..36ce858 --- /dev/null +++ b/.github/workflows/lint.yaml @@ -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 diff --git a/.travis.yml b/.travis.yml index faa42cf..445126c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 @@ -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"