Skip to content

Commit

Permalink
fix: better to connect db before to sync schema
Browse files Browse the repository at this point in the history
  • Loading branch information
steve-lebleu committed Jan 25, 2024
1 parent 644a870 commit b55e3ef
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '18.19.0'
- name: Setup MySQL server
uses: mirromutth/mysql-action@v1.1
with:
mysql version: '5.7'
mysql database: 'typeplate_test'
mysql root password: passw0rd
- name: Create directories
run: mkdir -p ./dist/env && cp ./src/env/template.env ./dist/env/test.env
- name: Setup .env file
Expand Down Expand Up @@ -72,6 +66,12 @@ jobs:
with:
name: build-files
path: dist
- name: Setup MySQL server
uses: mirromutth/mysql-action@v1.1
with:
mysql version: '5.7'
mysql database: 'typeplate_test'
mysql root password: passw0rd
- name: Synchronize database schema
run: typeorm schema:sync
- name: Execute tests suites
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '18.19.0'
- name: Setup MySQL server
uses: mirromutth/mysql-action@v1.1
with:
mysql version: '5.7'
mysql database: 'typeplate_test'
mysql root password: passw0rd
- name: Create directories
run: mkdir -p ./dist/env && cp ./src/env/template.env ./dist/env/test.env
- name: Setup .env file
Expand Down Expand Up @@ -73,6 +67,12 @@ jobs:
with:
name: build-files
path: dist
- name: Setup MySQL server
uses: mirromutth/mysql-action@v1.1
with:
mysql version: '5.7'
mysql database: 'typeplate_test'
mysql root password: passw0rd
- name: Synchronize database schema
run: typeorm schema:sync
- name: Execute tests suites
Expand Down

0 comments on commit b55e3ef

Please sign in to comment.