Skip to content

Feat: Add Server Sourcemaps to CI #207

Feat: Add Server Sourcemaps to CI

Feat: Add Server Sourcemaps to CI #207

Workflow file for this run

name: CI
on:
pull_request:
types: [opened, synchronize]
jobs:
build:
name: Build and Test
timeout-minutes: 15
runs-on: ubuntu-latest
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
DATABASE_URL: ${{ secrets.DATABASE_URL }}
POSTGRES_URL: ${{ secrets.POSTGRES_URL }}
NEXTAUTH_URL: ${{ secrets.NEXTAUTH_URL }}
NEXTAUTH_SECRET: ${{ secrets.NEXTAUTH_SECRET }}
GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }}
GOOGLE_CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }}
NEXT_PUBLIC_API_URL: ${{ secrets.NEXT_PUBLIC_API_URL }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
steps:
- name: 🏗 Check out code
uses: actions/checkout@v3
with:
fetch-depth: 2
- uses: pnpm/[email protected]
with:
version: 6.32.2
- name: 🏗 Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 18
cache: "pnpm"
- name: 👷 Install dependencies
run: pnpm install
# - name: 📀 Install Playwright Browsers
# run: npx playwright install --with-deps
- name: 💅 Lint
run: pnpm lint
- name: 🧱 Build
run: pnpm build
- name: 🧪 Test
run: pnpm test
- name: 🆙 Upload sourcemaps
run: npx sentry-cli sourcemaps inject ./apps/server/dist && sentry-cli sourcemaps upload ./apps/server/dist