Skip to content

Commit 58ac8ee

Browse files
committed
ci: adds a workflow definition to validate the typespec changes
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
1 parent 02f8ef9 commit 58ac8ee

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: validate typespec changes
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
defaults:
13+
run:
14+
working-directory: additions
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Setup NodeJs
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: '22.x'
22+
23+
- name: Install typescript and typespec globally
24+
run: npm i -g typescript @typespec/compiler
25+
26+
- name: Install dependencies
27+
run: npm ci
28+
29+
- name: build typespec
30+
run: tsp compile .
31+
32+
- uses: actions/upload-artifact@v4
33+
if: always()
34+
with:
35+
name: CSDLs
36+
path: tsp-output/*.csdl

0 commit comments

Comments
 (0)