Skip to content

test: Add comprehensive tests and refactor filter validation (#16) #31

test: Add comprehensive tests and refactor filter validation (#16)

test: Add comprehensive tests and refactor filter validation (#16) #31

Workflow file for this run

name: Test
on:
pull_request:
push:
branches: [main]
# Cancel in-progress runs for the same PR/branch
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- name: Checkout code
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: Run tests
run: npm test