Skip to content

Implement subscription management and Supabase enhancements #70

Implement subscription management and Supabase enhancements

Implement subscription management and Supabase enhancements #70

Workflow file for this run

name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# Explicitly checkout the head of the PR
# to avoid issues with stale code running in CI
ref: ${{ github.head_ref }}
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 8
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
STORE_PATH=$(pnpm store path --silent)
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: |
cd app
pnpm install --force
- name: Run unit tests
run: |
cd app
pnpm test:unit
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results
path: app/test-results/
retention-days: 7