Skip to content

Commit

Permalink
Fixing tests on Windows + Windows test action (#3110)
Browse files Browse the repository at this point in the history
* Updates for gulp 5

* .DS_Store ignored from copy operations
  • Loading branch information
roblarsen authored Apr 10, 2024
1 parent 38cf0f0 commit 72a8f61
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 3 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/test-windows.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@

name: Build status

on:
push:
branches: [main]
pull_request:
branches: [main]

permissions:
contents: read

jobs:
build:
runs-on: windows-latest
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- name: Get npm cache directory
id: npm-cache
run: |
echo "dir=$(npm config get cache)" >> "$GITHUB_OUTPUT"
- uses: actions/cache@v3
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- uses: actions/checkout@v4
- name: Run tests ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm test
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion test/file_existence.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ function checkFiles(directory, expectedFiles) {
'**/.cache/**',
],
dot: true, // include hidden files
mark: true, // add a `/` character to directory matches
mark: true, // add a `/` character to directory matches,
posix: true, //https://github.com/isaacs/node-glob/issues/467
});

// Check if all expected files are present in the
Expand Down

0 comments on commit 72a8f61

Please sign in to comment.