Skip to content

Commit 58f4b1b

Browse files
authored
Merge pull request #25 from dotnetprojects/copilot/add-typescript-test-steps
Add TypeScript compilation and test steps to GitHub Actions workflows
2 parents 8b4f68d + fddf32b commit 58f4b1b

2 files changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/dotnet.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,21 @@ jobs:
3030
fileVersion: ${{ steps.gitversion.outputs.MajorMinorPatch }}
3131
informationalVersion: ${{ steps.gitversion.outputs.InformationalVersion }}
3232

33+
- name: Setup Node.js
34+
uses: actions/setup-node@v4
35+
with:
36+
node-version: '20'
37+
cache: 'npm'
38+
cache-dependency-path: TiaCodegen-ts/package-lock.json
39+
- name: Install TypeScript dependencies
40+
run: npm ci
41+
working-directory: TiaCodegen-ts
42+
- name: Build TypeScript
43+
run: npm run build
44+
working-directory: TiaCodegen-ts
45+
- name: Test TypeScript
46+
run: npm test
47+
working-directory: TiaCodegen-ts
3348
- name: Restore dependencies
3449
run: dotnet restore
3550
- name: Build

.github/workflows/dotnetpull.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,21 @@ jobs:
1515
uses: actions/setup-dotnet@v1
1616
with:
1717
dotnet-version: 9.0.x
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: '20'
22+
cache: 'npm'
23+
cache-dependency-path: TiaCodegen-ts/package-lock.json
24+
- name: Install TypeScript dependencies
25+
run: npm ci
26+
working-directory: TiaCodegen-ts
27+
- name: Build TypeScript
28+
run: npm run build
29+
working-directory: TiaCodegen-ts
30+
- name: Test TypeScript
31+
run: npm test
32+
working-directory: TiaCodegen-ts
1833
- name: Restore dependencies
1934
run: dotnet restore
2035
- name: Build

0 commit comments

Comments
 (0)