From 0c8c8ab5d781723b3d9da52ab2037f7921ef5320 Mon Sep 17 00:00:00 2001 From: Felipe Simoes Date: Mon, 9 Oct 2023 17:43:08 +0200 Subject: [PATCH] #97 update pipeline to run npm install on windows --- .github/workflows/ci.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 12795b5..ab8eb6f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,13 +7,13 @@ on: branches: [ main ] jobs: - build: + install: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest] + os: [ubuntu-latest, windows-latest] node-version: [16.x] steps: @@ -27,11 +27,8 @@ jobs: run: npm ci - name: Build Library run: npm run build --if-present - - name: Run Tests - run: npm test --if-present - - install: + test: runs-on: ${{ matrix.os }} strategy: @@ -40,11 +37,14 @@ jobs: node-version: [16.x] steps: + - name: Checkout + uses: actions/checkout@v2 - name: Setup Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - - name: Init npm - run: npm init -y - - name: Install package - run: npm i @netcentric/fe-build + - name: Install dependencies + run: npm ci + - name: test Library + run: npm run test --if-present +