Skip to content

Commit 7a29cd9

Browse files
committed
cloud
1 parent 93900af commit 7a29cd9

File tree

5 files changed

+17
-15
lines changed

5 files changed

+17
-15
lines changed

.github/actions/edgedb-setup/action.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
name: Setup EdgeDB
22
description: 'Setup EdgeDB server, migrate schema, generate TS files'
33

4-
inputs:
5-
dsn:
6-
description: EdgeDB DSN
7-
84
runs:
95
using: composite
106
steps:
117
- name: Setup EdgeDB
128
uses: edgedb/setup-edgedb@v1
139
with:
1410
cli-version: nightly
15-
server-dsn: ${{ inputs.dsn }}
11+
server-dsn: none
1612

1713
- name: Branch & Migrate
1814
shell: bash

.github/workflows/api-schema.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
- synchronize
88
- labeled
99

10+
env:
11+
EDGEDB_INSTANCE: ${{ secrets.EDGEDB_INSTANCE }}
12+
EDGEDB_SECRET_KEY: ${{ secrets.EDGEDB_SECRET_KEY }}
13+
1014
jobs:
1115
generate:
1216
name: Generate
@@ -24,8 +28,6 @@ jobs:
2428

2529
- name: EdgeDB Setup
2630
uses: ./.github/actions/edgedb-setup
27-
with:
28-
dsn: ${{ secrets.EDGEDB_DSN }}
2931

3032
- name: Generate GraphQL Schema
3133
run: yarn start -- --gen-schema

.github/workflows/edgedb.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: EdgeDB
22
on:
33
pull_request:
44

5+
env:
6+
EDGEDB_INSTANCE: ${{ secrets.EDGEDB_INSTANCE }}
7+
EDGEDB_SECRET_KEY: ${{ secrets.EDGEDB_SECRET_KEY }}
8+
59
jobs:
610
Clean:
711
runs-on: ubuntu-latest
@@ -12,8 +16,6 @@ jobs:
1216

1317
- name: EdgeDB Setup
1418
uses: ./.github/actions/edgedb-setup
15-
with:
16-
dsn: ${{ secrets.EDGEDB_DSN }}
1719

1820
- name: Inject Access Policies
1921
run: yarn console edgedb ap inject

.github/workflows/lint.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
- master
77
- develop
88

9+
env:
10+
EDGEDB_INSTANCE: ${{ secrets.EDGEDB_INSTANCE }}
11+
EDGEDB_SECRET_KEY: ${{ secrets.EDGEDB_SECRET_KEY }}
12+
913
jobs:
1014
lint:
1115
runs-on: ubuntu-latest
@@ -17,8 +21,6 @@ jobs:
1721

1822
- name: EdgeDB Setup
1923
uses: ./.github/actions/edgedb-setup
20-
with:
21-
dsn: ${{ secrets.EDGEDB_DSN }}
2224

2325
- name: Check for no duplicate dependencies
2426
run: yarn dedupe --check

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
- master
77
- develop
88

9+
env:
10+
EDGEDB_INSTANCE: ${{ secrets.EDGEDB_INSTANCE }}
11+
EDGEDB_SECRET_KEY: ${{ secrets.EDGEDB_SECRET_KEY }}
12+
913
jobs:
1014
Unit:
1115
runs-on: ubuntu-latest
@@ -17,8 +21,6 @@ jobs:
1721

1822
- name: EdgeDB Setup
1923
uses: ./.github/actions/edgedb-setup
20-
with:
21-
dsn: ${{ secrets.EDGEDB_DSN }}
2224

2325
- name: Tests
2426
run: yarn test --reporters=github-actions
@@ -64,8 +66,6 @@ jobs:
6466

6567
- name: EdgeDB Setup
6668
uses: ./.github/actions/edgedb-setup
67-
with:
68-
dsn: ${{ secrets.EDGEDB_DSN }}
6969

7070
- name: E2E Tests
7171
run: yarn test:e2e --shard=${{ matrix.shard }}/6 --reporters=github-actions

0 commit comments

Comments
 (0)