feat: add basic ci workflow

This commit is contained in:
Arihant Bansal
2025-01-05 11:00:08 +05:30
parent 805ff71f97
commit 94ffce288e

29
.github/workflows/build.yml vendored Normal file
View File

@@ -0,0 +1,29 @@
name: Typescript Client CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
cache-dependency-path: pnpm-lock.json
- run: pnpm install
- run: pnpm run lint
- run: pnpm run build
- run: pnpm run test