Skip to content

Commit

Permalink
#97 update pipeline to run npm install on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
FelipeSimoes committed Oct 9, 2023
1 parent 5ca1c2a commit 0c8c8ab
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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

0 comments on commit 0c8c8ab

Please sign in to comment.