Skip to content

Initial SDK release

Initial SDK release #1

Workflow file for this run

# Test workflow for xdk-typescript
# Runs on every push and pull request
name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: Test Node.js ${{ matrix.node-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: ['18', '20', '22']
steps:
- uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Type check
run: npm run type-check
- name: Lint
run: npm run lint
continue-on-error: true # Don't fail on lint errors for now
- name: Run tests
run: npm test
- name: Run tests with coverage
if: matrix.node-version == '20'
run: npm run test:coverage
- name: Upload coverage
if: matrix.node-version == '20'
uses: codecov/codecov-action@v4
with:
files: coverage/lcov.info
fail_ci_if_error: false