Skip to content

feat(api): add track and widget endpoints to api #112

feat(api): add track and widget endpoints to api

feat(api): add track and widget endpoints to api #112

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
PNPM_VERSION: 10.4.1
DATABASE_URL: "postgresql://placeholder"
BETTER_AUTH_SECRET: "placeholder-secret-for-build"
SKIP_ENV_VALIDATION: "true"
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: ${{ env.PNPM_VERSION }}
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Type Check
run: pnpm type:check
- name: Run Tests
run: pnpm test:run
env:
SKIP_ENV_VALIDATION: "true"