Skip to content

Migrate tests to vitest and configure miniflare integration #946

Migrate tests to vitest and configure miniflare integration

Migrate tests to vitest and configure miniflare integration #946

Workflow file for this run

name: Pull Request
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches:
- main
pull_request:
branches:
- main
jobs:
checks:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x, 24.x]
name: Nodejs ${{ matrix.node-version }}
steps:
- uses: actions/checkout@v4
- name: Setup Nodejs ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies and build
run: npm install
- name: Run lint checks
run: npm run lint:ci
- name: Run prettier checks
run: npm run lint:prettier:check
- name: Run Node.js tests
run: npm run test:coverage
- name: Run Cloudflare Workers tests
run: npm run test:miniflare
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}