Skip to content

Merge pull request #180 from microsoftgraph/dependabot/npm_and_yarn/g… #136

Merge pull request #180 from microsoftgraph/dependabot/npm_and_yarn/g…

Merge pull request #180 from microsoftgraph/dependabot/npm_and_yarn/g… #136

Workflow file for this run

name: Node.js build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
defaults:
run:
working-directory: graph-sample
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
- name: Copy settings file
run: |
cp example.env .env
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Build
run: npm run build --if-present