Skip to content

Commit 1f5ddd5

Browse files
committed
fix(ci): save a newly filled browser package cache even when the suite fails
1 parent 46099c2 commit 1f5ddd5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎.github/workflows/checks.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,16 +339,18 @@ jobs:
339339
working-directory: apps/sim
340340
run: PLAYWRIGHT_APT_CACHE="$HOME/.cache/playwright-apt" bash ../../.github/scripts/http-e2e.sh "${{ matrix.group }}"
341341

342+
# Packages installed fine even when the suite then fails, so both steps run unless cancelled.
342343
- name: Check for new browser system packages
343344
id: apt-cache
345+
if: ${{ !cancelled() }}
344346
run: |
345347
if [ -f "$HOME/.cache/playwright-apt/.updated" ]; then
346348
rm "$HOME/.cache/playwright-apt/.updated"
347349
echo 'updated=true' >> "$GITHUB_OUTPUT"
348350
fi
349351
350352
- name: Save browser system packages
351-
if: steps.apt-cache.outputs.updated == 'true'
353+
if: ${{ !cancelled() && steps.apt-cache.outputs.updated == 'true' }}
352354
uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v5
353355
with:
354356
path: ~/.cache/playwright-apt

0 commit comments

Comments
 (0)