File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : DB Migration
2
+
3
+ on :
4
+ pull_request :
5
+ branches : [main]
6
+
7
+ jobs :
8
+ checks :
9
+ runs-on : ubuntu-latest
10
+
11
+ steps :
12
+ - uses : actions/checkout@v3
13
+ with :
14
+ submodules : recursive
15
+
16
+ - name : Update
17
+ run : sudo apt update
18
+ - name : Install OS dependencies
19
+ run : sudo apt install -y python3-dev nodejs
20
+
21
+ - uses : actions/checkout@v3
22
+ with :
23
+ submodules : recursive
24
+
25
+ - name : Install graphile-migrate
26
+ run : npm install -g graphile-migrate
27
+
28
+ - name : Install NodeJS dependencies
29
+ run : yarn install
30
+
31
+ - name : Codegen TypeScript
32
+ run : yarn codegen
33
+
34
+ - name : Build TypeScript
35
+ run : yarn build
36
+
37
+ - name : Start-up local test environment
38
+
39
+ with :
40
+ compose-file : " ./ci-compose.yml"
41
+
42
+ - name : Graphile-migrate reset DB
43
+ run : . .gm.env && graphile-migrate reset --erase
44
+
45
+ - name : Run graphile-migrate migrations
46
+ run : . .gm.env && graphile-migrate migrate
You can’t perform that action at this time.
0 commit comments