Explorar el Código

ci: ensure dialyzer plt cache is updated on changes

Andrew Mayorov hace 2 años
padre
commit
53e961f8b2
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      .github/workflows/run_test_cases.yaml

+ 3 - 1
.github/workflows/run_test_cases.yaml

@@ -109,7 +109,9 @@ jobs:
       - uses: actions/cache@v3
         with:
           path: "source/emqx_dialyzer_${{ matrix.otp }}_plt"
-          key: rebar3-dialyzer-plt-${{ matrix.profile }}-${{ matrix.otp }}
+          key: rebar3-dialyzer-plt-${{ matrix.profile }}-${{ matrix.otp }}-${{ hashFiles('source/rebar.*', 'source/apps/*/rebar.*', 'source/lib-ee/*/rebar.*') }}
+          restore-keys: |
+            rebar3-dialyzer-plt-${{ matrix.profile }}-${{ matrix.otp }}-
       - name: run static checks
         env:
           PROFILE: ${{ matrix.profile }}