Skip to content

Commit

Permalink
Update testCI.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
karinocheretny authored Jan 12, 2024
1 parent 8feb481 commit 9f9e40f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/testCI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ jobs:

- name: Set NODE_ENV to test
run: echo "NODE_ENV=test" >> $GITHUB_ENV

- name: Create MySQL Database
run: |
mysql -h $TEST_DB_HOST -u $TEST_DB_USER -p$TEST_DB_PASS -e "CREATE DATABASE IF NOT EXISTS myclassroom_test"
env:
TEST_DB_HOST: ${{ env.TEST_DB_HOST }}
TEST_DB_USER: ${{ env.TEST_DB_USER }}
TEST_DB_PASS: ${{ env.TEST_DB_PASS }}

- name: Run migrations for testing
run: npx sequelize-cli db:migrate --env test
Expand Down

0 comments on commit 9f9e40f

Please # to comment.