Fix: Add matrix of tox envs 55/12655/2
authorJessica Wagantall <jwagantall@linuxfoundation.org>
Thu, 4 Apr 2024 02:43:42 +0000 (19:43 -0700)
committerJessica Wagantall <jwagantall@linuxfoundation.org>
Thu, 4 Apr 2024 02:44:30 +0000 (19:44 -0700)
Change-Id: I40fdc9626d1c878aa37fa38cfb536b0265151ea3
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
.github/workflows/gerrit-novote-merge.yaml

index f2066dc..67e597a 100644 (file)
@@ -51,6 +51,9 @@ concurrency:
   group: gerrit-merge-${{ github.workflow }}-${{ github.event.inputs.GERRIT_CHANGE_ID || github.run_id }}
   cancel-in-progress: true
 
+env:
+  TOX_ENVS: '["docs","docs-linkcheck"]'
+
 jobs:
   notify:
     runs-on: ubuntu-latest
@@ -73,6 +76,9 @@ jobs:
   call-gerrit-tox-and-sonarcloud:
     runs-on: ubuntu-latest
     needs: notify
+    strategy:
+      matrix:
+        tox-env: ${{ fromJSON(env.TOX_ENVS) }}
     steps:
       - uses: actions/checkout@v4
         with:
@@ -82,7 +88,7 @@ jobs:
         # yamllint disable-line rule:line-length
         uses: lfit/releng-reusable-workflows/.github/actions/tox-run-action@main
         with:
-          tox-envs: '["docs","docs-linkcheck"]'
+          tox-envs: ${{ matrix.tox-env }}
       - name: Run SonarCloud Scan
         uses: sonarsource/sonarcloud-github-action@master
         env: