Skip to content

Commit c814d9f

Browse files
committed
update
1 parent c2048fe commit c814d9f

File tree

1 file changed

+21
-10
lines changed

1 file changed

+21
-10
lines changed

.github/workflows/sdkbuild2run.yml

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
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-
41
name: Node.js CI
52

63
on:
@@ -11,21 +8,35 @@ on:
118

129
jobs:
1310
build:
14-
1511
runs-on: windows-latest
1612
env:
1713
ProductClientId: ${{ secrets.PRODUCTCLIENTID }}
1814
ProductClientSecret: ${{ secrets.PRODUCTCLIENTSECRET }}
1915

2016
steps:
21-
- name: Generate lock file
22-
run: npm install --package-lock-only
2317
- uses: actions/checkout@v4
24-
- name: Use Node.js
18+
19+
- name: Verify repository
20+
run: |
21+
echo "Current directory: $(pwd)"
22+
echo "Files in root:"
23+
dir
24+
if not exist "package.json" (
25+
echo "ERROR: package.json not found!"
26+
exit 1
27+
)
28+
29+
- name: Setup Node.js
2530
uses: actions/setup-node@v4
2631
with:
2732
node-version: '21'
2833
cache: 'npm'
29-
- run: npm ci
30-
- run: npm run build --if-present
31-
- run: npm test
34+
35+
- name: Install dependencies
36+
working-directory: ${{ github.workspace }}
37+
run: |
38+
npm ci
39+
40+
- name: Run tests
41+
working-directory: ${{ github.workspace }}
42+
run: npm test

0 commit comments

Comments
 (0)