Test on Windows in CI
This commit is contained in:
@@ -3,6 +3,9 @@
|
|||||||
|
|
||||||
version: 2.1
|
version: 2.1
|
||||||
|
|
||||||
|
orbs:
|
||||||
|
win: circleci/windows@5.0.0
|
||||||
|
|
||||||
executors:
|
executors:
|
||||||
node24:
|
node24:
|
||||||
docker:
|
docker:
|
||||||
@@ -51,6 +54,28 @@ jobs:
|
|||||||
name: Run tests
|
name: Run tests
|
||||||
command: npm test
|
command: npm test
|
||||||
|
|
||||||
|
test_win:
|
||||||
|
executor:
|
||||||
|
name: win/default
|
||||||
|
shell: bash.exe
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- run:
|
||||||
|
name: Install Node.js
|
||||||
|
command: nvm install 20.0.0 && nvm use 20.0.0
|
||||||
|
- run:
|
||||||
|
name: Report Node and NPM versions
|
||||||
|
command: echo "Using Node $(node --version) and NPM $(npm --version)"
|
||||||
|
- run:
|
||||||
|
name: Install dependencies
|
||||||
|
command: npm install
|
||||||
|
- run:
|
||||||
|
name: Build
|
||||||
|
command: npm run build
|
||||||
|
- run:
|
||||||
|
name: Run tests
|
||||||
|
command: npm test
|
||||||
|
|
||||||
test_parallel: &test_parallel
|
test_parallel: &test_parallel
|
||||||
parameters:
|
parameters:
|
||||||
executor:
|
executor:
|
||||||
@@ -145,3 +170,4 @@ workflows:
|
|||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
ignore: /pull\/.*/ # Don't run on pull requests.
|
ignore: /pull\/.*/ # Don't run on pull requests.
|
||||||
|
- test_win
|
||||||
|
|||||||
Reference in New Issue
Block a user