1
1
on : push
2
2
name : Checks
3
3
4
- permissions :
5
- contents : read
6
-
7
4
env :
5
+ # Artificially refresh the cache
6
+ DEPENDENCIES_CACHE_VERSION : 1
8
7
PLT_CACHE_VERSION : 1
9
8
9
+ permissions :
10
+ contents : read
11
+
10
12
jobs :
11
13
ensure_code_consistency :
12
14
runs-on : ubuntu-latest
31
33
cache-name : cache-elixir-deps
32
34
with :
33
35
path : deps
34
- key : ${{ runner.os }}-mix-${{ env.cache-name }}-${{ hashFiles('**/mix.lock') }}
36
+ key : ${{ runner.os }}-mix-${{ env.cache-name }}-${{ env.DEPENDENCIES_CACHE_VERSION }}}-${{ hashFiles('**/mix.lock') }}
35
37
restore-keys : |
36
- ${{ runner.os }}-mix-${{ env.cache-name }}-
38
+ ${{ runner.os }}-mix-${{ env.cache-name }}-${{ env.DEPENDENCIES_CACHE_VERSION }}}
37
39
38
40
# Step: Define how to cache the `_build` directory. After the first run,
39
41
# this speeds up tests runs a lot. This includes not re-compiling our
45
47
cache-name : cache-compiled-build
46
48
with :
47
49
path : _build
48
- key : ${{ runner.os }}-mix-${{ env.cache-name }}-${{ hashFiles('**/mix.lock') }}
50
+ key : ${{ runner.os }}-mix-${{ env.cache-name }}-${{ env.DEPENDENCIES_CACHE_VERSION }}}-${{ hashFiles('**/mix.lock') }}
49
51
restore-keys : |
50
- ${{ runner.os }}-mix-${{ env.cache-name }}-
52
+ ${{ runner.os }}-mix-${{ env.cache-name }}-${{ env.DEPENDENCIES_CACHE_VERSION }}}
51
53
${{ runner.os }}-mix-
52
54
53
55
# Step: Conditionally bust the cache when job is re-run. Sometimes, we
@@ -156,9 +158,9 @@ jobs:
156
158
cache-name : cache-elixir-deps
157
159
with :
158
160
path : deps
159
- key : ${{ runner.os }}-mix-${{ env.cache-name }}-${{ hashFiles('**/mix.lock') }}
161
+ key : ${{ runner.os }}-mix-${{ env.cache-name }}-${{ env.DEPENDENCIES_CACHE_VERSION }}}-${{ hashFiles('**/mix.lock') }}
160
162
restore-keys : |
161
- ${{ runner.os }}-mix-${{ env.cache-name }}-
163
+ ${{ runner.os }}-mix-${{ env.cache-name }}-${{ env.DEPENDENCIES_CACHE_VERSION }}}
162
164
163
165
# Step: Define how to cache the `_build` directory. After the first run,
164
166
# this speeds up tests runs a lot. This includes not re-compiling our
@@ -170,9 +172,9 @@ jobs:
170
172
cache-name : cache-compiled-build
171
173
with :
172
174
path : _build
173
- key : ${{ runner.os }}-mix-${{ env.cache-name }}-${{ hashFiles('**/mix.lock') }}
175
+ key : ${{ runner.os }}-mix-${{ env.cache-name }}-${{ env.DEPENDENCIES_CACHE_VERSION }}}-${{ hashFiles('**/mix.lock') }}
174
176
restore-keys : |
175
- ${{ runner.os }}-mix-${{ env.cache-name }}-
177
+ ${{ runner.os }}-mix-${{ env.cache-name }}-${{ env.DEPENDENCIES_CACHE_VERSION }}}
176
178
${{ runner.os }}-mix-
177
179
178
180
# Step: Conditionally bust the cache when job is re-run. Sometimes, we
0 commit comments