From c815fab34b4ab72cb6af5949ad49a91be56d4ae2 Mon Sep 17 00:00:00 2001 From: Yamini Jha Date: Wed, 10 Jan 2024 20:08:38 +0530 Subject: [PATCH 1/3] Add Github Action for windows build Fixes #1070 This commit replaces Appveyor with a GitHub Actions workflow for Windows. It uses `setup-node@v4` with `node-version: lts/*` and `checkout@v4`. Also removes `appveyor.yml`. With no conflict with current branch. --- .github/workflows/node.js.yml | 32 ++++++++++++++++++++++++++------ appveyor.yml | 22 ---------------------- 2 files changed, 26 insertions(+), 28 deletions(-) delete mode 100644 appveyor.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 13ee38ab8..66578c9a9 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -7,12 +7,32 @@ on: branches: [main] jobs: - build: + build-ubuntu: runs-on: ubuntu-latest steps: - - uses: actions/setup-node@v4 + - name: Checkout code + uses: actions/checkout@v4 + - name: Install dependencies + run: npm ci + - name: Run tests + run: npm test + + build-windows: + runs-on: windows-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Set up Node.js + uses: actions/setup-node@v4 with: - node-version: lts/* - - uses: actions/checkout@v4 - - run: npm ci - - run: npm test + node-version: "lts/*" + - name: Display Node.js version + run: node --version + - name: Display npm version + run: npm --version + - name: Display Python version + run: python --version + - name: Install dependencies + run: npm ci + - name: Run tests + run: npm test diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 4cec8e06e..000000000 --- a/appveyor.yml +++ /dev/null @@ -1,22 +0,0 @@ -version: build{build} - -platform: - - x64 - -os: Visual Studio 2015 - -cache: - - node_modules -> appveyor.yml - -install: - - ps: Install-Product node LTS $env:platform - - node --version - - npm --version - - python --version - - npm ci - -build: off - -test_script: - - npm run test - # - npm run test-e2e From 8e621e083093d8206b38deb50c52f6c64bd992c8 Mon Sep 17 00:00:00 2001 From: yaminijha1 <110732889+yaminijha1@users.noreply.github.com> Date: Thu, 7 Aug 2025 23:11:10 +0530 Subject: [PATCH 2/3] Update node.js.yml --- .github/workflows/node.js.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 66578c9a9..71a6877bf 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -12,6 +12,9 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + - name: Debug NODE_OPTIONS + run: echo "NODE_OPTIONS=$NODE_OPTIONS" + - name: Install dependencies run: npm ci - name: Run tests From 21186f10e36cf069f248958024b26e7cfbb3778a Mon Sep 17 00:00:00 2001 From: yaminijha1 <110732889+yaminijha1@users.noreply.github.com> Date: Thu, 7 Aug 2025 23:23:06 +0530 Subject: [PATCH 3/3] Update node.js.yml --- .github/workflows/node.js.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 71a6877bf..c96472f44 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -12,9 +12,10 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 - - name: Debug NODE_OPTIONS - run: echo "NODE_OPTIONS=$NODE_OPTIONS" - + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: "lts/*" - name: Install dependencies run: npm ci - name: Run tests