Skip to content

Commit

Permalink
Merge pull request #147 from plivo/CSDK-2817
Browse files Browse the repository at this point in the history
gh action to perform npm install across node versions
  • Loading branch information
huzaif-plivo authored Aug 22, 2024
2 parents 4970e27 + c65e00d commit f90292c
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/job.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Test npm install

on:
push:
branches:
- master
- beta
pull_request:
branches:
- master
- beta

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [11, 12, 14, 16, 18, 'node']

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm install

- name: Verify npm install success
run: echo "npm install succeeded for Node.js version ${{ matrix.node-version }}"

0 comments on commit f90292c

Please sign in to comment.