Skip to content

Commit 100b049

Browse files
Create sdkbuild2run.yml
1 parent a18ea7c commit 100b049

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/sdkbuild2run.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3+
4+
name: Node.js CI
5+
6+
on:
7+
push:
8+
branches: [ "master" ]
9+
pull_request:
10+
branches: [ "master" ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: windows-latest
16+
env:
17+
ProductClientId: ${{ secrets.PRODUCTCLIENTID }}
18+
ProductClientSecret: ${{ secrets.PRODUCTCLIENTSECRET }}
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
- name: Use Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: '21'
26+
cache: 'npm'
27+
- run: npm ci
28+
- run: npm run build --if-present
29+
- run: npm test

0 commit comments

Comments
 (0)