Skip to content

Commit 75a80a4

Browse files
authored
Merge pull request #377 from microsoftgraph/nikithauc/ci_github
Creating CI github action
2 parents ca3d823 + d5c4d13 commit 75a80a4

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/ci_validation.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Graph JS SDK CI
5+
6+
on: [pull_request]
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [8.x, 10.x, 12.x, 14.x, 15.x]
16+
# Adding version 8.x considering SharePoint Framework depends on JS Graph library
17+
# https://docs.microsoft.com/en-us/sharepoint/dev/spfx/compatibility
18+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v1
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
- run: npm ci
27+
- run: npm run build --if-present
28+
- run: npm test

0 commit comments

Comments
 (0)