From cde73f22f458669cef56b08f4b5959bd35512aae Mon Sep 17 00:00:00 2001 From: Moritz Schmidt Date: Mon, 24 May 2021 18:29:29 +0200 Subject: [PATCH] run tests on Windows too --- .github/workflows/nodejs.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 9dc30db..4957a78 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -35,3 +35,22 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} directory: ./coverage/ + + test-windows: + runs-on: windows-latest + strategy: + matrix: + node: [stable] + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: npm install, build, and test + run: | + npm install + npm run build --if-present + npm test + env: + CI: true