Sfoglia il codice sorgente

ci: ensure dialyzer plt cache is updated on changes

Andrew Mayorov 2 anni fa
parent
commit
53e961f8b2
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  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
       - uses: actions/cache@v3
         with:
         with:
           path: "source/emqx_dialyzer_${{ matrix.otp }}_plt"
           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
       - name: run static checks
         env:
         env:
           PROFILE: ${{ matrix.profile }}
           PROFILE: ${{ matrix.profile }}