Skip to content

Commit 59dc940

Browse files
committed
ci: verify that we can write into non-empty directory _and cache_
We just implemented the workaround where the `.zip` file is cached when extracting into a non-empty directory (because we obviously do not want to cache the entire directory including the already-existing files). Let's add a CI test for this. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 7019ae6 commit 59dc940

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ jobs:
4242
runs-on: windows-latest
4343
steps:
4444
- uses: actions/checkout@v2
45+
- uses: actions/checkout@v2
46+
with:
47+
repository: microsoft/vcpkg
48+
path: compat/vcbuild/vcpkg
49+
clean: false
4550
- name: Run this Action in-place
4651
uses: ./
4752
with:
@@ -51,4 +56,4 @@ jobs:
5156
stripPrefix: compat/vcbuild/vcpkg/
5257
- name: Verify that the artifact files were downloaded
5358
shell: bash
54-
run: compat/vcbuild/vcpkg/vcpkg.exe version
59+
run: compat/vcbuild/vcpkg/vcpkg.exe version && ls -la compat/vcbuild/vcpkg/.git

0 commit comments

Comments
 (0)