Chore: Update pre-commit dependencies to latest 71/72571/8
authorAnil Belur <abelur@linuxfoundation.org>
Tue, 23 Jan 2024 22:08:08 +0000 (14:08 -0800)
committerAnil Belur <abelur@linuxfoundation.org>
Fri, 26 Jan 2024 00:25:06 +0000 (16:25 -0800)
ERROR! the role 'java-install' was not found in <>
The error appears to be in '': line 5, column 7, but may
be elsewhere in the file depending on the exact syntax
problem.

Update role name to match the role path on GHA and
Jenkins jobs.

Ref: https://github.com/ansible/molecule/issues/1042
Change-Id: I49824dd6ea8b507e76d9d92ae332077c52ae3501
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
.github/workflows/gerrit-verify.yaml
.pre-commit-config.yaml
molecule/default/converge.yml

index c64f422..0ff54f0 100644 (file)
@@ -120,6 +120,7 @@ jobs:
           pip3 install ansible ansible-lint molecule-plugins[docker] docker
       - name: Run Molecule tests.
         run: molecule test
+        working-directory: ${{env.working-directory}}
         env:
           PY_COLORS: "1"
           ANSIBLE_FORCE_COLOR: "1"
index b10b09b..1af1238 100644 (file)
@@ -1,11 +1,11 @@
 ---
 repos:
   - repo: https://github.com/pre-commit/pre-commit-hooks
-    rev: v4.1.0
+    rev: v4.5.0
     hooks:
       - id: trailing-whitespace
 
   - repo: https://github.com/jorisroovers/gitlint
-    rev: v0.17.0
+    rev: v0.19.1
     hooks:
       - id: gitlint
index 976a86e..1e30adc 100644 (file)
@@ -2,4 +2,4 @@
 - name: Converge
   hosts: all
   roles:
-    - role: java-install
+    - role: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"