Skip to content

Commit 1a0d286

Browse files
committed
Update tests.yml
1 parent 1a17349 commit 1a0d286

File tree

1 file changed

+29
-4
lines changed

1 file changed

+29
-4
lines changed

.github/workflows/tests.yml

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ on:
99
- main
1010

1111
jobs:
12-
tests:
13-
runs-on: windows-latest
12+
setup:
13+
runs-on: ubuntu-latest
1414

1515
steps:
1616
- name: Checkout repository
@@ -47,7 +47,32 @@ jobs:
4747
unzip -o "$outputFile" -d ./tests
4848
rm -f "$outputFile"
4949
50+
- name: Cache tests folder
51+
uses: actions/cache@v4
52+
with:
53+
path: ./tests
54+
key: tests-${{ runner.os }}-${{ hashFiles('**/latest.win64') }}
55+
restore-keys: |
56+
tests-${{ runner.os }}-
57+
58+
tests:
59+
runs-on: windows-latest
60+
needs: setup
61+
62+
steps:
63+
- name: Checkout repository
64+
uses: actions/[email protected]
65+
66+
- name: Restore tests folder from cache
67+
uses: actions/cache@v4
68+
with:
69+
path: ./tests
70+
key: tests-${{ runner.os }}-${{ hashFiles('**/*.exe') }}
71+
restore-keys: |
72+
tests-${{ runner.os }}-
73+
5074
- name: Run tests
75+
shell: bash
5176
run: |
52-
cd ./tests
53-
ls
77+
echo "Contents of the tests folder:"
78+
ls -R ./tests

0 commit comments

Comments
 (0)