Skip to content

Commit

Permalink
Experimentally moved env section of test.yml to remove redundancy
Browse files Browse the repository at this point in the history
  • Loading branch information
jawj committed Jan 8, 2025
1 parent 29a9c7d commit d95dd28
Showing 1 changed file with 5 additions and 20 deletions.
25 changes: 5 additions & 20 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
branches:
- main

env:
VITE_NEON_DB_URL: ${{ secrets.VITE_NEON_DB_URL }}
VITE_NEON_DB_POOLER_URL: ${{ secrets.VITE_NEON_DB_POOLER_URL }}
VITE_WSPROXY: ${{ vars.VITE_WSPROXY }}

jobs:
test-node-18:
runs-on: ubuntu-latest
Expand All @@ -20,10 +25,6 @@ jobs:

# goal
- name: Run tests in Node 18 (no native WebSocket), node environment
env:
VITE_NEON_DB_URL: ${{ secrets.VITE_NEON_DB_URL }}
VITE_NEON_DB_POOLER_URL: ${{ secrets.VITE_NEON_DB_POOLER_URL }}
VITE_WSPROXY: ${{ vars.VITE_WSPROXY }}
run: npm run testNode

test-node-lts:
Expand All @@ -40,29 +41,13 @@ jobs:

# goal
- name: Run tests in Node LTS, node environment
env:
VITE_NEON_DB_URL: ${{ secrets.VITE_NEON_DB_URL }}
VITE_NEON_DB_POOLER_URL: ${{ secrets.VITE_NEON_DB_POOLER_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_NEON_DB_POOLER_URL: ${{ secrets.VITE_NEON_DB_POOLER_URL }}
VITE_WSPROXY: ${{ vars.VITE_WSPROXY }}
run: npm run testEdge

- name: Run Chromium tests
env:
VITE_NEON_DB_URL: ${{ secrets.VITE_NEON_DB_URL }}
VITE_NEON_DB_POOLER_URL: ${{ secrets.VITE_NEON_DB_POOLER_URL }}
VITE_WSPROXY: ${{ vars.VITE_WSPROXY }}
run: npm run testChromium

- name: Run Cloudflare Workers tests
env:
VITE_NEON_DB_URL: ${{ secrets.VITE_NEON_DB_URL }}
VITE_NEON_DB_POOLER_URL: ${{ secrets.VITE_NEON_DB_POOLER_URL }}
VITE_WSPROXY: ${{ vars.VITE_WSPROXY }}
run: npm run testCfWorker

0 comments on commit d95dd28

Please sign in to comment.