diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index ebde63371e..e3fef28c33 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -45,3 +45,22 @@ jobs: fi env: CODECLIMATE_REPO_TOKEN: ${{ secrets.codeclimate }} + build-windows: + runs-on: windows-latest + + strategy: + matrix: + node-version: [20.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm i npm -g + - run: npm install -g codeclimate-test-reporter + - run: npm install + - run: npm test + env: + CI: true diff --git a/package-lock.json b/package-lock.json index 606ce5ce83..5eebe7179d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8749,6 +8749,24 @@ "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", "dev": true }, + "node_modules/cross-env": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz", + "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.1" + }, + "bin": { + "cross-env": "src/bin/cross-env.js", + "cross-env-shell": "src/bin/cross-env-shell.js" + }, + "engines": { + "node": ">=10.14", + "npm": ">=6", + "yarn": ">=1" + } + }, "node_modules/cross-spawn": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", @@ -24230,6 +24248,7 @@ "devDependencies": { "@types/mocha": "^10.0.6", "@types/node": "^20.11.6", + "cross-env": "^7.0.3", "mocha": "^10.2.0", "shx": "^0.3.4", "ts-node": "^10.9.2", diff --git a/packages/configuration/package.json b/packages/configuration/package.json index e68fd8f17d..f03320c268 100644 --- a/packages/configuration/package.json +++ b/packages/configuration/package.json @@ -44,7 +44,7 @@ "prepublish": "npm run compile", "pack": "npm pack --pack-destination ../generators/test/build", "compile": "shx rm -rf lib/ && tsc && npm run pack", - "test": "NODE_CONFIG_DIR=./test/config mocha --config ../../.mocharc.json --recursive test/**.test.ts test/**/*.test.ts" + "test": "cross-env NODE_CONFIG_DIR=./test/config mocha --config ../../.mocharc.json --recursive test/**.test.ts test/**/*.test.ts" }, "semistandard": { "env": [ @@ -67,6 +67,7 @@ "devDependencies": { "@types/mocha": "^10.0.6", "@types/node": "^20.11.6", + "cross-env": "^7.0.3", "mocha": "^10.2.0", "shx": "^0.3.4", "ts-node": "^10.9.2", diff --git a/packages/tests/package.json b/packages/tests/package.json index 46953fddc5..0f05e86ec2 100644 --- a/packages/tests/package.json +++ b/packages/tests/package.json @@ -34,7 +34,7 @@ "scripts": { "prepublish": "npm run compile", "pack": "echo \"not necessary\"", - "test": "echo \"not necessary\"", + "test": "shx echo \"not necessary\"", "compile": "shx rm -rf lib/ && tsc" }, "directories": {