Skip to content

Commit ad6e616

Browse files
ci: add migration
1 parent 67f6edc commit ad6e616

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/push.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ jobs:
3030
name: Test
3131
runs-on: ubuntu-latest
3232
needs: setup
33+
env:
34+
NODE_ENV: test
35+
POSTGRES_PASSWORD: postgres
36+
POSTGRES_DATABASE: postgres
37+
POSTGRES_USER: postgres
3338
services:
3439
postgres:
3540
image: postgres:10.8
@@ -60,12 +65,9 @@ jobs:
6065
run: yarn install
6166
- name: Lint
6267
run: yarn lint
68+
- name: Migrate
69+
run: yarn typeorm migration:run
6370
- name: Test
64-
env:
65-
NODE_ENV: test
66-
POSTGRES_PASSWORD: postgres
67-
POSTGRES_DATABASE: postgres
68-
POSTGRES_USER: postgres
6971
run: yarn test
7072

7173
publish:

0 commit comments

Comments
 (0)