mirror of
https://github.com/h5bp/html5-boilerplate.git
synced 2026-01-06 21:34:03 -05:00
Fixing tests on Windows + Windows test action (#3110)
* Updates for gulp 5 * .DS_Store ignored from copy operations
This commit is contained in:
36
.github/workflows/test-windows.yaml
vendored
Normal file
36
.github/workflows/test-windows.yaml
vendored
Normal file
@@ -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
package-lock.json
generated
4
package-lock.json
generated
@@ -26,8 +26,8 @@
|
||||
"strip-json-comments": "^5.0.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16",
|
||||
"npm": ">=8"
|
||||
"node": ">=18",
|
||||
"npm": ">=10"
|
||||
}
|
||||
},
|
||||
"node_modules/@aashutoshrathi/word-wrap": {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user