Skip to content

feat: add integration tests #6

feat: add integration tests

feat: add integration tests #6

Workflow file for this run

name: Run Vitests and upload benchmark results
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
permissions:
contents: write
pull-requests: write
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [20.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm install
- run: npm run build
- run: npm test
env:
POSTMAN_API_KEY: ${{ secrets.POSTMAN_API_KEY }}
- name: Store benchmark results
uses: actions/upload-artifact@v4
with:
name: benchmark-results-${{ matrix.os }}
path: benchmark-results.json