From 60b04d8721233ea762d8edec7d8b086a7576195c Mon Sep 17 00:00:00 2001 From: NickNaso Date: Wed, 24 Mar 2021 21:49:37 +0100 Subject: [PATCH 1/2] Added CI configuration for windows. --- .github/workflows/ci-win.yml | 31 +++++++++++++++++++++++++++++++ .github/workflows/ci.yml | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci-win.yml diff --git a/.github/workflows/ci-win.yml b/.github/workflows/ci-win.yml new file mode 100644 index 000000000..a6a50142c --- /dev/null +++ b/.github/workflows/ci-win.yml @@ -0,0 +1,31 @@ +name: Node.js CI Windows Platform + +on: [push, pull_request] + +jobs: + test: + timeout-minutes: 30 + strategy: + matrix: + node-version: [10.x, 12.x, 14.x, 15.x] + os: + - windows-latest + - windows-2019 + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2.1.5 + with: + node-version: ${{ matrix.node-version }} + - name: Check Node.js installation + run: | + node --version + npm --version + - name: Install dependencies + run: | + npm install + - name: npm test + run: | + npm run pretest -- --verbose + node test diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 193f09384..2ad80e98b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: Node.js CI +name: Node.js CI Unix Platform on: [push, pull_request] From 636ab68cea3c409e706c6a93f50716b9d1b6de97 Mon Sep 17 00:00:00 2001 From: NickNaso Date: Wed, 24 Mar 2021 22:00:47 +0100 Subject: [PATCH 2/2] Added windows-2016 as virtual environment. --- .github/workflows/ci-win.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-win.yml b/.github/workflows/ci-win.yml index a6a50142c..29e89fe47 100644 --- a/.github/workflows/ci-win.yml +++ b/.github/workflows/ci-win.yml @@ -10,7 +10,7 @@ jobs: node-version: [10.x, 12.x, 14.x, 15.x] os: - windows-latest - - windows-2019 + - windows-2016 runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2