Skip to content

feat(electric): Add server-side validation of null values incoming from Satellite clients #666

feat(electric): Add server-side validation of null values incoming from Satellite clients

feat(electric): Add server-side validation of null values incoming from Satellite clients #666

name: Clients / Typescript / Tests
on:
workflow_call:
push:
branches:
- main
pull_request:
paths:
- 'clients/typescript/**'
- '!clients/typescript/**.md'
defaults:
run:
working-directory: clients/typescript
concurrency:
group: clients-typescript-${{ github.ref }}
cancel-in-progress: true
jobs:
verify_formatting:
name: Check formatting & linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 18
cache: pnpm
- run: make deps
- run: pnpm run check-styleguide
check_types:
name: Check types
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 18
cache: pnpm
- run: make deps
- run: pnpm run typecheck
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [16, 18, 20]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- name: Install
run: make deps
- name: Build
run: make build
- name: Run tests
run: make tests