Skip to content

Merge pull request #410 from salemlf/bump/v2.6.3-beta #528

Merge pull request #410 from salemlf/bump/v2.6.3-beta

Merge pull request #410 from salemlf/bump/v2.6.3-beta #528

Workflow file for this run

name: Run Unit Tests, TypeScript Check, and Linting
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
unit-tests:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Run unit/integration tests
run: npm run test
typescript-check:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Check for TypeScript errors
run: npm run tsc-check
lint:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Check for linting errors
run: npm run lint-err-only
check-format:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Ensure code is formatted
run: npm run check-format