Browse Source

fix(ci-conf): stop requiring git index in conf tests

Andrew Mayorov 2 năm trước cách đây
mục cha
commit
397686fd18

+ 2 - 0
.github/workflows/_pr_entrypoint.yaml

@@ -217,6 +217,8 @@ jobs:
     with:
       runner_labels: ${{ needs.sanity-checks.outputs.runner_labels }}
       builder: ${{ needs.sanity-checks.outputs.builder }}
+      version-emqx: ${{ needs.sanity-checks.outputs.version-emqx }}
+      version-emqx-enterprise: ${{ needs.sanity-checks.outputs.version-emqx-enterprise }}
 
   check_deps_integrity:
     needs:

+ 7 - 0
.github/workflows/run_conf_tests.yaml

@@ -13,6 +13,12 @@ on:
       builder:
         required: true
         type: string
+      version-emqx:
+        required: false
+        type: string
+      version-emqx-enterprise:
+        required: false
+        type: string
 
 jobs:
   run_conf_tests:
@@ -20,6 +26,7 @@ jobs:
     container: ${{ inputs.builder }}
     env:
       PROFILE: ${{ matrix.profile }}
+      PKG_VSN: ${{ startsWith(matrix.profile, 'emqx-enterprise') && inputs.version-emqx-enterprise || inputs.version-emqx }}
     strategy:
       fail-fast: false
       matrix: