Skip to content

Commit 368f098

Browse files
authored
chore: setup ci (#35)
* chore: setup ci * noop env vars for local builds
1 parent 7c2bea9 commit 368f098

File tree

3 files changed

+28
-3
lines changed

3 files changed

+28
-3
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: ci
2+
on:
3+
push:
4+
pull_request:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
- uses: the-guild-org/shared-config/setup@main
12+
with:
13+
nodeVersion: 16
14+
- run: yarn codegen
15+
- run: yarn workspace app run build
16+
lint:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v3
20+
- uses: the-guild-org/shared-config/setup@main
21+
with:
22+
nodeVersion: 16
23+
- run: yarn workspace app run lint

app/lib/supabase.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ const SupabaseClientContext = React.createContext<SupabaseClient | null>(null);
77
export function SupabaseProvider(props: { children: React.ReactNode }) {
88
const [client] = React.useState(() =>
99
createClient(
10-
process.env.NEXT_PUBLIC_SUPABASE_URL!,
11-
process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!
10+
process.env.NEXT_PUBLIC_SUPABASE_URL ?? "http://127.0.0.1:6969",
11+
process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY ?? "noop"
1212
)
1313
);
1414

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
"prepare": "husky install",
2222
"codegen": "graphql-codegen",
2323
"codegen:fetch": "node --no-warnings scripts/fetchGraphQLSchema ",
24-
"codegen:watch": "yarn run codegen -- --watch"
24+
"codegen:watch": "yarn run codegen -- --watch",
25+
"prebuild": "yarn run codegen",
26+
"build": "yarn workspaces run build"
2527
}
2628
}

0 commit comments

Comments
 (0)