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,41 @@ 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 : Tests
51
+ run : yarn test --reporters=github-actions
52
+
30
53
E2E :
31
54
name : E2E Tests (${{ matrix.database }} ${{ matrix.shard }}/6)
32
55
runs-on : ubuntu-latest
56
+ needs : Setup
33
57
34
58
services :
35
59
neo4j :
@@ -56,22 +80,14 @@ jobs:
56
80
database : [neo4j, edgedb]
57
81
fail-fast : false
58
82
steps :
59
- - uses : actions/checkout@v4
60
- - name : Node Setup & Yarn Install
61
- uses : ./.github/actions/setup
62
-
63
- - name : EdgeDB Setup
64
- uses : ./.github/actions/edgedb-setup
83
+ - uses : actions/download-artifact@v4
65
84
with :
66
- dsn : ${{ secrets.EDGEDB_DSN }}
85
+ name : src
86
+ path : .
67
87
68
88
- name : E2E Tests
69
89
run : yarn test:e2e --shard=${{ matrix.shard }}/6 --reporters=github-actions
70
90
env :
71
91
NEO4J_VERSION : ${{ matrix.neo4j-version }}
72
92
DATABASE : ${{ matrix.database }}
73
93
continue-on-error : ${{ matrix.database == 'edgedb' }}
74
-
75
- - name : EdgeDB Teardown
76
- uses : ./.github/actions/edgedb-teardown
77
- if : always()
0 commit comments