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

package upgrades, add proxy url for auth #56

Merged
merged 1 commit into from
Nov 13, 2023
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
60 changes: 43 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,35 +7,61 @@ on:
branches: ["main"]
merge_group:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}

# You can leverage Vercel Remote Caching with Turbo to speed up your builds
# @link https://turborepo.org/docs/core-concepts/remote-caching#remote-caching-on-vercel-builds
env:
FORCE_COLOR: 3
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}

jobs:
build-lint:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

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

- name: Copy env
shell: bash
run: cp .env.example .env

- name: Lint
run: bun lint && bun lint:ws

format:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Setup bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Setup
uses: ./tooling/github/setup

# - name: Setup Node 18
# uses: actions/setup-node@v3
# with:
# node-version: 18
- name: Format
run: bun format

- name: Install deps (with cache)
run: bun install
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

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

- name: Typecheck
run: turbo typecheck

comment-if-failed:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Build, lint and type-check
run: bun turbo build --filter=!lords-bridge-subgraph lint format typecheck
- name: Setup
uses: ./tooling/github/setup

- name: Check workspaces
run: bunx [email protected]
- uses: juliusmarminge/gh-failed-action-commenter@main
7 changes: 7 additions & 0 deletions apps/auth-proxy/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

AUTH_SECRET=""
AUTH_DISCORD_ID=""
AUTH_DISCORD_SECRET=""
AUTH_REDIRECT_PROXY_URL=""

NITRO_PRESET="vercel_edge"
Loading
Loading