Chore: Update the pre-commit deps to latest 72/72572/2
authorAnil Belur <abelur@linuxfoundation.org>
Tue, 23 Jan 2024 22:11:05 +0000 (14:11 -0800)
committerAnil Belur <abelur@linuxfoundation.org>
Fri, 26 Jan 2024 18:38:46 +0000 (10:38 -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: I30299ee2670224d3a4e6448ee78aafaff5cc5b1b
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
.github/workflow/gerrit-verify.yaml
.pre-commit-config.yaml
molecule/default/converge.yml

index 3b85129..2c90d97 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 306d03e..1e30adc 100644 (file)
@@ -2,4 +2,4 @@
 - name: Converge
   hosts: all
   roles:
-    - role: docker-install
+    - role: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"