Skip to content

Commit dfac9af

Browse files
committed
week number cache
1 parent 1920027 commit dfac9af

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,14 @@ jobs:
1313
build:
1414
name: Build
1515
runs-on: macos-latest
16+
env:
17+
GITHUB_ACTIONS_OUTPUT: ""
1618
strategy:
1719
matrix:
1820
browser: [chrome, firefox, safari, javascriptcore, spidermonkey, v8]
1921
steps:
22+
- name: Extract Week Number
23+
run: echo "WEEK_NUMBER=$(date +%W)" >> $GITHUB_ENV
2024
- name: Install Firefox
2125
if: ${{ matrix.browser == 'firefox' }}
2226
run: brew install --cask firefox
@@ -31,8 +35,8 @@ jobs:
3135
- name: Cache jsvu Binaries
3236
uses: actions/cache@v4
3337
with:
34-
path: |
35-
~/.jsvu
38+
path: ~/.jsvu
39+
key: ${{ runner.os }}-build-jsvu-cache-${{ matrix.browser }}-${{ env.WEEK_NUMBER }}
3640
- name: Run tests
3741
run: |
3842
echo "Running in $BROWSER"

0 commit comments

Comments
 (0)