From 45cd0a52c514b965fdbdbea96e418a6aae36c8b7 Mon Sep 17 00:00:00 2001 From: gardar Date: Fri, 25 Nov 2022 08:22:56 +0000 Subject: [PATCH] refactor(ci): move collection dependencies to where ansible knows to pick it up Signed-off-by: gardar --- .github/workflows/ansible-lint.yml | 20 +++----------------- requirements.yml | 4 ++++ 2 files changed, 7 insertions(+), 17 deletions(-) create mode 100644 requirements.yml diff --git a/.github/workflows/ansible-lint.yml b/.github/workflows/ansible-lint.yml index 7747cb0c..321272d7 100644 --- a/.github/workflows/ansible-lint.yml +++ b/.github/workflows/ansible-lint.yml @@ -1,27 +1,13 @@ --- -name: Ansible Lint # feel free to pick your own name +name: Ansible Lint on: [push, pull_request] jobs: - build: + lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - - name: Install community.crypto - uses: nick-invision/retry@v2 - with: - timeout_minutes: 3 - max_attempts: 3 - command: ansible-galaxy collection install 'community.crypto' -p /github/home/.ansible/collections/ - - - name: Install community.general - uses: nick-invision/retry@v2 - with: - timeout_minutes: 3 - max_attempts: 3 - command: ansible-galaxy collection install 'community.general' -p /github/home/.ansible/collections/ + - uses: actions/checkout@v3 - name: Lint roles uses: ansible/ansible-lint-action@main diff --git a/requirements.yml b/requirements.yml new file mode 100644 index 00000000..554b93f4 --- /dev/null +++ b/requirements.yml @@ -0,0 +1,4 @@ +--- +collections: + - community.general + - community.crypto