Skip to content

Commit 72a8f61

Browse files
authored
Fixing tests on Windows + Windows test action (#3110)
* Updates for gulp 5 * .DS_Store ignored from copy operations
1 parent 38cf0f0 commit 72a8f61

File tree

3 files changed

+40
-3
lines changed

3 files changed

+40
-3
lines changed

.github/workflows/test-windows.yaml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
2+
name: Build status
3+
4+
on:
5+
push:
6+
branches: [main]
7+
pull_request:
8+
branches: [main]
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
build:
15+
runs-on: windows-latest
16+
strategy:
17+
matrix:
18+
node-version: [18.x, 20.x]
19+
steps:
20+
- name: Get npm cache directory
21+
id: npm-cache
22+
run: |
23+
echo "dir=$(npm config get cache)" >> "$GITHUB_OUTPUT"
24+
- uses: actions/cache@v3
25+
with:
26+
path: ${{ steps.npm-cache.outputs.dir }}
27+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
28+
restore-keys: |
29+
${{ runner.os }}-node-
30+
- uses: actions/checkout@v4
31+
- name: Run tests ${{ matrix.node-version }}
32+
uses: actions/setup-node@v4
33+
with:
34+
node-version: ${{ matrix.node-version }}
35+
- run: npm ci
36+
- run: npm test

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/file_existence.mjs

+2-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ function checkFiles(directory, expectedFiles) {
5656
'**/.cache/**',
5757
],
5858
dot: true, // include hidden files
59-
mark: true, // add a `/` character to directory matches
59+
mark: true, // add a `/` character to directory matches,
60+
posix: true, //https://github.com/isaacs/node-glob/issues/467
6061
});
6162

6263
// Check if all expected files are present in the

0 commit comments

Comments
 (0)