Skip to content

chore: update build workflow #9

chore: update build workflow

chore: update build workflow #9

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
changes:
runs-on: ubuntu-latest
outputs:
root: ${{ steps.filter.outputs.root }}
steps:
- uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
root:
- '!{playground,docs}/**'
- '*.{ts,tsx,js,jsx,json}'
- 'package.json'
- 'tsconfig.json'
test-root:
needs: changes
if: ${{ needs.changes.outputs.root == 'true' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
- run: npm ci
- run: npm test