Skip to content

Commit 4dc51ec

Browse files
authored
Merge pull request StellarCommons#255 from Leothosine/feat/sdk-ci-workflow
feat(sdk): add CI workflow for sdk lint, typecheck, test, and build
2 parents b930da7 + f1e29a9 commit 4dc51ec

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/sdk.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: SDK CI
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "packages/sdk/**"
7+
8+
jobs:
9+
sdk:
10+
runs-on: ubuntu-latest
11+
defaults:
12+
run:
13+
working-directory: packages/sdk
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: 20
19+
cache: npm
20+
- run: npm ci
21+
- run: npm run typecheck
22+
- run: npm run lint
23+
- run: npm run format:check
24+
- run: npm run test
25+
- run: npm run build
26+
- uses: actions/upload-artifact@v4
27+
with:
28+
name: sdk-dist
29+
path: packages/sdk/dist/

0 commit comments

Comments
 (0)