Skip to content

Commit 872b8da

Browse files
authored
Store result-cache also on failling builds (#18)
1 parent 44c80fe commit 872b8da

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/tests.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ jobs:
6363
> infection.json5
6464
cat infection.json5 | jq
6565
66-
- name: "Cache Result cache"
67-
uses: actions/cache@v4
66+
- name: "Restore result cache"
67+
uses: actions/cache/restore@v4
6868
with:
6969
path: ./tmp
7070
key: "result-cache-v1-${{ matrix.extension-name }}-${{ github.run_id }}"
@@ -78,3 +78,10 @@ jobs:
7878
--log-verbosity=all \
7979
--debug \
8080
--logger-text=php://stdout
81+
82+
- name: "Save result cache"
83+
uses: actions/cache/save@v4
84+
if: ${{ !cancelled() }}
85+
with:
86+
path: ./tmp
87+
key: "result-cache-v1-${{ matrix.extension-name }}-${{ github.run_id }}"

0 commit comments

Comments
 (0)