Draft PR to test CI/test workflows #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test-node-18: | |
runs-on: ubuntu-latest | |
steps: | |
# setup | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: Install package dependencies | |
run: npm install | |
# goal | |
- name: Run tests in Node 18 (no native WebSocket), node environment | |
env: | |
VITE_NEON_DB_URL: ${{ secrets.VITE_NEON_DB_URL }} | |
VITE_WSPROXY: ${{ vars.VITE_WSPROXY }} | |
run: npm run testNode | |
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 | |
env: | |
VITE_NEON_DB_URL: ${{ secrets.VITE_NEON_DB_URL }} | |
VITE_WSPROXY: ${{ vars.VITE_WSPROXY }} | |
run: npm run testNode | |
- name: Run tests in Node LTS, edge-runtime environment | |
env: | |
VITE_NEON_DB_URL: ${{ secrets.VITE_NEON_DB_URL }} | |
VITE_WSPROXY: ${{ vars.VITE_WSPROXY }} | |
run: npm run testEdge |