From 577c2c144554eb34e1cd94b355ff4dd37ec82a0c Mon Sep 17 00:00:00 2001 From: Ruben Ruiz de Gauna Date: Tue, 12 Dec 2023 10:42:31 +0100 Subject: [PATCH] chore: bump GH action dependencies --- .ansible-lint | 7 +++++++ .github/actions/installation/install.sh | 4 ++-- .github/actions/linter/action.yml | 2 +- .github/workflows/main.yml | 6 +++--- 4 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 .ansible-lint diff --git a/.ansible-lint b/.ansible-lint new file mode 100644 index 0000000..006d05d --- /dev/null +++ b/.ansible-lint @@ -0,0 +1,7 @@ +enable_list: + - yaml + +skip_list: + - role-name + - risky-file-permissions + - literal-compare diff --git a/.github/actions/installation/install.sh b/.github/actions/installation/install.sh index 5f356bf..ddb0192 100755 --- a/.github/actions/installation/install.sh +++ b/.github/actions/installation/install.sh @@ -1,7 +1,7 @@ sudo pipx uninstall ansible-core sudo pip3 install 'rich>=10.0.0,<11.0.0' -sudo pip3 install ansible-lint[community]==5.3.2 -sudo pip3 install molecule[docker]==3.6.0 +sudo pip3 install ansible-lint[community]==6.13.1 +sudo pip3 install molecule[docker]==4.0.4 ansible --version diff --git a/.github/actions/linter/action.yml b/.github/actions/linter/action.yml index 211db62..29a9ac1 100644 --- a/.github/actions/linter/action.yml +++ b/.github/actions/linter/action.yml @@ -5,5 +5,5 @@ runs: steps: - name: Run linter id: linter - run: ansible-lint tasks/* -x role-name,risky-file-permissions,literal-compare -c .yamllint + run: ansible-lint tasks/* shell: bash diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8b94bcb..f97ce0e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,8 +14,8 @@ jobs: steps: - uses: actions/checkout@v2 - name: Install requirements - uses: newrelic/infrastructure-agent-ansible/.github/actions/installation@master + uses: ./.github/actions/installation - name: Run linter - uses: newrelic/infrastructure-agent-ansible/.github/actions/linter@master + uses: ./.github/actions/linter - name: Run tests - uses: newrelic/infrastructure-agent-ansible/.github/actions/tests@master + uses: ./.github/actions/tests