Skip to content

Commit

Permalink
chore: setup ci (#35)
Browse files Browse the repository at this point in the history
* chore: setup ci

* noop env vars for local builds
  • Loading branch information
n1ru4l authored Sep 26, 2022
1 parent 7c2bea9 commit 368f098
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: ci
on:
push:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: the-guild-org/shared-config/setup@main
with:
nodeVersion: 16
- run: yarn codegen
- run: yarn workspace app run build
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: the-guild-org/shared-config/setup@main
with:
nodeVersion: 16
- run: yarn workspace app run lint
4 changes: 2 additions & 2 deletions app/lib/supabase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ const SupabaseClientContext = React.createContext<SupabaseClient | null>(null);
export function SupabaseProvider(props: { children: React.ReactNode }) {
const [client] = React.useState(() =>
createClient(
process.env.NEXT_PUBLIC_SUPABASE_URL!,
process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!
process.env.NEXT_PUBLIC_SUPABASE_URL ?? "http://127.0.0.1:6969",
process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY ?? "noop"
)
);

Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
"prepare": "husky install",
"codegen": "graphql-codegen",
"codegen:fetch": "node --no-warnings scripts/fetchGraphQLSchema ",
"codegen:watch": "yarn run codegen -- --watch"
"codegen:watch": "yarn run codegen -- --watch",
"prebuild": "yarn run codegen",
"build": "yarn workspaces run build"
}
}

1 comment on commit 368f098

@vercel
Copy link

@vercel vercel bot commented on 368f098 Sep 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.