Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: sentry integration #85

Merged
merged 11 commits into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .changeset/thirty-schools-wonder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
'@orbitkit/marketing': minor
'@orbitkit/env': minor
'@orbitkit/docs': minor
'@orbitkit/web': minor
'@orbitkit/api': minor
'@orbitkit/assets': minor
'@orbitkit/auth': minor
'@orbitkit/eslint': minor
'@orbitkit/storybook': minor
'@orbitkit/tailwind': minor
'@orbitkit/tsconfig': minor
'@orbitkit/vite': minor
'@orbitkit/core': minor
'@orbitkit/db': minor
'@orbitkit/ui': minor
'@orbitkit/utils': minor
---

feat: sentry integration for apps
4 changes: 4 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ runs:
- name: Install dependencies
shell: bash
run: bun install

- name: Install Playwright Browsers
shell: bash
run: bun playwright install --with-deps
180 changes: 0 additions & 180 deletions .github/workflows/main-ci.yml

This file was deleted.

111 changes: 111 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
name: Main CI

on:
push:
branches:
- main

env:
# These are needed to enable turborepo's remote task caching
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}

jobs:
spell-and-md-lint:
name: Spellcheck and Markdown Lint
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Setup
uses: ./.github/actions/setup

- name: Checks
run: bun turbo lint:md lint:spell

web:
name: Web CI
runs-on: ubuntu-latest

environment: Production

env:
# Database URL
DATABASE_URL: ${{ secrets.DATABASE_URL }}

# Auth Secret
AUTH_SECRET: ${{ secrets.AUTH_SECRET }}

# Github OAuth
AUTH_GITHUB_ID: ${{ secrets.AUTH_GITHUB_ID }}
AUTH_GITHUB_SECRET: ${{ secrets.AUTH_GITHUB_SECRET }}

# Google OAuth
AUTH_GOOGLE_ID: ${{ secrets.AUTH_GOOGLE_ID }}
AUTH_GOOGLE_SECRET: ${{ secrets.AUTH_GOOGLE_SECRET }}

# Uploadthing
UPLOADTHING_SECRET: ${{ secrets.UPLOADTHING_SECRET }}
UPLOADTHING_APP_ID: ${{ secrets.UPLOADTHING_APP_ID }}

# Unkey
UNKEY_ROOT_KEY: ${{ secrets.UNKEY_ROOT_KEY }}
UNKEY_NAMESPACE: ${{ secrets.UNKEY_NAMESPACE }}

# Sentry
NEXT_PUBLIC_SENTRY_DSN: ${{ vars.PUBLIC_SENTRY_DSN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: web
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}

# Posthog
NEXT_PUBLIC_POSTHOG_HOST: ${{ vars.PUBLIC_POSTHOG_HOST }}
NEXT_PUBLIC_POSTHOG_KEY: ${{ secrets.NEXT_PUBLIC_POSTHOG_KEY }}

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Setup
uses: ./.github/actions/setup

- name: Checks
run: bun turbo lint typecheck build test:e2e --filter=@orbitkit/web

- uses: actions/upload-artifact@v4
if: always()
with:
name: web-playwright-report
path: apps/web/playwright-report/
retention-days: 30

marketing:
name: Marketing CI
runs-on: ubuntu-latest

environment: Production

env:
# Sentry
PUBLIC_SENTRY_DSN: ${{ vars.PUBLIC_SENTRY_DSN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: marketing
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Setup
uses: ./.github/actions/setup

- name: Checks
run: bun turbo lint typecheck build test:e2e --filter=@orbitkit/marketing
Loading
Loading