Skip to content

trim descriptions of traits (#171) #525

trim descriptions of traits (#171)

trim descriptions of traits (#171) #525

Workflow file for this run

name: Unit tests
on:
push:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: 20
# https://github.com/pnpm/action-setup
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 8.x.x
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-v2-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-v2-
- name: Install dependencies
run: pnpm install
- name: Check linter
run: pnpm lint:check
- name: Build core
working-directory: packages/core
run: pnpm build
- name: Build rest
run: pnpm --filter compile --filter viewer run build
- name: Run all tests
run: pnpm --recursive run test:cov