Bugfix-hn2 #101
Workflow file for this run
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: Node.js Tests | |
on: | |
workflow_call: # Makes this workflow reusable | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
env: | |
VITE_REDIS_HOST: ${{ secrets.REDIS_HOST }} | |
VITE_REDIS_PORT: ${{ secrets.REDIS_PORT }} | |
VITE_REDIS_USERNAME: ${{ secrets.REDIS_USERNAME }} | |
VITE_REDIS_PASSWORD: ${{ secrets.REDIS_PASSWORD }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20.x' | |
cache: 'npm' | |
- name: Install dependencies | |
run: | | |
rm -rf node_modules package-lock.json | |
npm install | |
- name: Run tests | |
run: npm run test | |
env: | |
REDIS_HOST: ${{ secrets.REDIS_HOST }} | |
REDIS_PORT: ${{ secrets.REDIS_PORT }} | |
REDIS_USERNAME: ${{ secrets.REDIS_USERNAME }} | |
REDIS_PASSWORD: ${{ secrets.REDIS_PASSWORD }} | |
NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.NEXT_PUBLIC_SUPABASE_URL }} | |
NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.NEXT_PUBLIC_SUPABASE_ANON_KEY }} | |
PRIV_SUPABASE_SERVICE_ROLE_KEY: ${{ secrets.PRIV_SUPABASE_SERVICE_ROLE_KEY }} |