7
7
- develop
8
8
9
9
jobs :
10
- Unit :
10
+ Setup :
11
11
runs-on : ubuntu-latest
12
-
13
12
steps :
14
13
- uses : actions/checkout@v4
15
14
- name : Node Setup & Yarn Install
@@ -20,16 +19,44 @@ jobs:
20
19
with :
21
20
dsn : ${{ secrets.EDGEDB_DSN }}
22
21
23
- - name : Tests
24
- run : yarn test --reporters=github-actions
22
+ - name : Zip files
23
+ run : tar -cf src.tar .
24
+ shell : bash
25
+
26
+ - uses : actions/upload-artifact@v4
27
+ with :
28
+ name : src
29
+ path : src.tar
30
+ retention-days : 1
25
31
26
32
- name : EdgeDB Teardown
27
33
uses : ./.github/actions/edgedb-teardown
28
34
if : always()
29
35
36
+ Unit :
37
+ runs-on : ubuntu-latest
38
+ needs : Setup
39
+
40
+ steps :
41
+ - uses : actions/download-artifact@v4
42
+ with :
43
+ name : src
44
+ path : .
45
+
46
+ - name : Unzip files
47
+ run : tar -xf src.tar
48
+ shell : bash
49
+
50
+ - name : Node Setup & Yarn Install
51
+ uses : ./.github/actions/setup
52
+
53
+ - name : Tests
54
+ run : yarn test --reporters=github-actions
55
+
30
56
E2E :
31
57
name : E2E Tests (${{ matrix.database }} ${{ matrix.shard }}/6)
32
58
runs-on : ubuntu-latest
59
+ needs : Setup
33
60
34
61
services :
35
62
neo4j :
@@ -56,22 +83,17 @@ jobs:
56
83
database : [neo4j, edgedb]
57
84
fail-fast : false
58
85
steps :
59
- - uses : actions/checkout@v4
86
+ - uses : actions/download-artifact@v4
87
+ with :
88
+ name : src
89
+ path : .
90
+
60
91
- name : Node Setup & Yarn Install
61
92
uses : ./.github/actions/setup
62
93
63
- - name : EdgeDB Setup
64
- uses : ./.github/actions/edgedb-setup
65
- with :
66
- dsn : ${{ secrets.EDGEDB_DSN }}
67
-
68
94
- name : E2E Tests
69
95
run : yarn test:e2e --shard=${{ matrix.shard }}/6 --reporters=github-actions
70
96
env :
71
97
NEO4J_VERSION : ${{ matrix.neo4j-version }}
72
98
DATABASE : ${{ matrix.database }}
73
99
continue-on-error : ${{ matrix.database == 'edgedb' }}
74
-
75
- - name : EdgeDB Teardown
76
- uses : ./.github/actions/edgedb-teardown
77
- if : always()
0 commit comments