Skip to content

CI - Github Actions #19

CI - Github Actions

CI - Github Actions #19

Workflow file for this run

name: SDK Lint, Tests and Publish
on:
pull_request:
paths:
- 'packages/sdk/**'
- '!examples/**'
- '!packages/react/**'
- '!packages/ui/**'
- '!storybook/**'
jobs:
sdk:
runs-on: ubuntu-22.04
defaults:
run:
working-directory: packages/sdk/
steps:
- name: Checkout repository
uses: actions/checkout@v4 # TODO: SHA commit instead of version
- name: Setup Node version
uses: actions/setup-node@v4 # TODO: SHA commit instead of version
with:
node-version-file: '.nvmrc' # Root of the repository.
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Lint check
run: npm run lint
- name: Tests
run: npm run test
# TODO: NPM publish.