From c6b2038b03614ed71dbb13d97a8982888e8ec607 Mon Sep 17 00:00:00 2001 From: 5saviahv <5saviahv@users.noreply.github.com> Date: Mon, 10 Jun 2024 03:21:39 +0300 Subject: [PATCH] Add Windows build --- .github/workflows/ci.yml | 2 +- .github/workflows/windows.yml | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/windows.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d39708e..f788b52 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: ci +name: Linux build on: push: diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml new file mode 100644 index 0000000..36352b8 --- /dev/null +++ b/.github/workflows/windows.yml @@ -0,0 +1,32 @@ +name: Windows build + +on: + push: + pull_request: + +jobs: + build: + name: Node ${{ matrix.node-version }} + runs-on: windows-latest + + strategy: + matrix: + # mocha nolonger supports node 10 + node-version: [12.x, 14.x, 16.x, 18.x, 20.x, 21.x] + + steps: + - name: Clone repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + + - name: Install + run: | + npm ci + + - name: Run Tests + run: | + npm test