Skip to content

Draft PR to test CI/test workflows #36

Draft PR to test CI/test workflows

Draft PR to test CI/test workflows #36

Workflow file for this run

name: Test
on:
pull_request:
branches:
- main
env:
VITE_NEON_DB_URL: ${{ secrets.VITE_NEON_DB_URL }}
VITE_NEON_DB_POOLER_URL: ${{ secrets.VITE_NEON_DB_POOLER_URL }}
VITE_VERCEL_TOKEN: ${{ secrets.VITE_VERCEL_TOKEN }}
VITE_WSPROXY: ${{ vars.VITE_WSPROXY }}
jobs:
test-node-16:
runs-on: ubuntu-latest
steps:
# setup
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
- name: Install package dependencies
run: npm install
# goal
- name: Run tests in Node 16 (no native WebSocket or fetch), node environment
run: npm run test:node
test-node-lts:
runs-on: ubuntu-latest
steps:
# setup
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install package dependencies
run: npm install
# goal
- name: Run tests in Node LTS, node environment
run: npm run test:node
- name: Run tests in Node LTS, edge-runtime environment
run: npm run test:edge
- name: Run browser tests
run: npm run test:browser
- name: Run Cloudflare Workers tests
run: npm run test:cloudflare
- name: Run Vercel Functions tests
run: npm run test:vercel