Skip to content

feature:implement Add subscription trial tracking with automatic expi… #29

feature:implement Add subscription trial tracking with automatic expi…

feature:implement Add subscription trial tracking with automatic expi… #29

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test-backend:
runs-on: ubuntu-latest
defaults:
run:
working-directory: backend
env:
NODE_ENV: test
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
SUPABASE_SERVICE_ROLE_KEY: ${{ secrets.SUPABASE_SERVICE_ROLE_KEY }}
JWT_SECRET: test-secret
ADMIN_API_KEY: test-admin-key
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: backend/package-lock.json
- run: npm ci
- run: npm test -- --coverage --ci
- uses: actions/upload-artifact@v4
if: always()
with:
name: coverage-report
path: backend/coverage/