From 2785aa12070735be25440bd4d07c242dfdc2a002 Mon Sep 17 00:00:00 2001 From: Yamini Jha Date: Wed, 10 Jan 2024 20:08:38 +0530 Subject: [PATCH] Add Github Action for windows build Fixes #1070 In this commit I have added build workflow for windows in github action. --- .github/workflows/node.js.yml | 31 +++++++++++++++++++++++++++---- appveyor.yml | 22 ---------------------- 2 files changed, 27 insertions(+), 26 deletions(-) delete mode 100644 appveyor.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 9b0519192..4bee0e950 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -7,9 +7,32 @@ on: branches: [main] jobs: - build: + build-ubuntu: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - run: npm ci - - run: npm test + - 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@v3 + with: + node-version: "17" + - 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