File tree Expand file tree Collapse file tree 6 files changed +56
-5
lines changed Expand file tree Collapse file tree 6 files changed +56
-5
lines changed Original file line number Diff line number Diff line change 1
1
name : Setup EdgeDB
2
2
description : ' Setup EdgeDB server, migrate schema, generate TS files'
3
+
4
+ inputs :
5
+ dsn :
6
+ description : EdgeDB DSN
7
+
3
8
runs :
4
9
using : composite
5
10
steps :
6
11
- name : Setup EdgeDB
7
12
uses : edgedb/setup-edgedb@v1
13
+ with :
14
+ cli-version : nightly
15
+ server-dsn : ${{ inputs.dsn }}
16
+
17
+ - name : Branch & Migrate
18
+ shell : bash
19
+ run : |
20
+ edgedb branch create github_$GITHUB_RUN_ID_$GITHUB_JOB
21
+ edgedb branch switch github_$GITHUB_RUN_ID_$GITHUB_JOB
22
+ edgedb migrate
8
23
9
24
- name : Generate EdgeDB TS files
10
25
shell : bash
Original file line number Diff line number Diff line change
1
+ name : Teardown EdgeDB
2
+ runs :
3
+ using : composite
4
+ steps :
5
+ - name : Delete Branch
6
+ shell : bash
7
+ run : |
8
+ edgedb branch switch main
9
+ edgedb branch drop github_$GITHUB_RUN_ID_$GITHUB_JOB --non-interactive
Original file line number Diff line number Diff line change 24
24
25
25
- name : EdgeDB Setup
26
26
uses : ./.github/actions/edgedb-setup
27
+ with :
28
+ dsn : ${{ secrets.EDGEDB_DSN }}
27
29
28
30
- name : Generate GraphQL Schema
29
31
run : yarn start -- --gen-schema
34
36
name : ${{ matrix.ref }}-gql-schema
35
37
path : schema.graphql
36
38
39
+ - name : EdgeDB Teardown
40
+ uses : ./.github/actions/edgedb-teardown
41
+ if : always()
42
+
37
43
graphql-diff :
38
44
name : GraphQL Diff
39
45
needs : [generate]
Original file line number Diff line number Diff line change @@ -10,11 +10,10 @@ jobs:
10
10
- name : Node Setup & Yarn Install
11
11
uses : ./.github/actions/setup
12
12
13
- - uses : edgedb/setup-edgedb@v1
14
-
15
- - name : Generate EdgeDB TS files
16
- shell : bash
17
- run : yarn edgedb:gen
13
+ - name : EdgeDB Setup
14
+ uses : ./.github/actions/edgedb-setup
15
+ with :
16
+ dsn : ${{ secrets.EDGEDB_DSN }}
18
17
19
18
- name : Inject Access Policies
20
19
run : yarn console edgedb ap inject
26
25
- name : Validate seed scripts are error free
27
26
run : yarn edgedb:seed
28
27
shell : bash
28
+
29
+ - name : EdgeDB Teardown
30
+ uses : ./.github/actions/edgedb-teardown
31
+ if : always()
Original file line number Diff line number Diff line change 17
17
18
18
- name : EdgeDB Setup
19
19
uses : ./.github/actions/edgedb-setup
20
+ with :
21
+ dsn : ${{ secrets.EDGEDB_DSN }}
20
22
21
23
- name : Check for no duplicate dependencies
22
24
run : yarn dedupe --check
34
36
35
37
- name : Lint
36
38
run : yarn eslint --ext .ts,.tsx --max-warnings 0 .
39
+
40
+ - name : EdgeDB Teardown
41
+ uses : ./.github/actions/edgedb-teardown
42
+ if : always()
Original file line number Diff line number Diff line change @@ -17,10 +17,16 @@ jobs:
17
17
18
18
- name : EdgeDB Setup
19
19
uses : ./.github/actions/edgedb-setup
20
+ with :
21
+ dsn : ${{ secrets.EDGEDB_DSN }}
20
22
21
23
- name : Tests
22
24
run : yarn test --reporters=github-actions
23
25
26
+ - name : EdgeDB Teardown
27
+ uses : ./.github/actions/edgedb-teardown
28
+ if : always()
29
+
24
30
E2E :
25
31
name : E2E Tests (${{ matrix.database }} ${{ matrix.shard }}/6)
26
32
runs-on : ubuntu-latest
@@ -56,10 +62,16 @@ jobs:
56
62
57
63
- name : EdgeDB Setup
58
64
uses : ./.github/actions/edgedb-setup
65
+ with :
66
+ dsn : ${{ secrets.EDGEDB_DSN }}
59
67
60
68
- name : E2E Tests
61
69
run : yarn test:e2e --shard=${{ matrix.shard }}/6 --reporters=github-actions
62
70
env :
63
71
NEO4J_VERSION : ${{ matrix.neo4j-version }}
64
72
DATABASE : ${{ matrix.database }}
65
73
continue-on-error : ${{ matrix.database == 'edgedb' }}
74
+
75
+ - name : EdgeDB Teardown
76
+ uses : ./.github/actions/edgedb-teardown
77
+ if : always()
You can’t perform that action at this time.
0 commit comments