Skip to content

Commit

Permalink
ci(Develop): Adding correct setp
Browse files Browse the repository at this point in the history
  • Loading branch information
gabszs committed Jul 4, 2024
1 parent 81b3c77 commit 4ae585f
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions .github/workflows/develop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,26 +45,9 @@ jobs:
- name: Install Dependencies
run: poetry install

- name: Wait for MySQL to be ready
run: |
for i in {30..0}; do
if mysqladmin ping -h 127.0.0.1 --port 3307 --user=root --password=${{secrets.DB_PASSWORD}} &> /dev/null; then
break
fi
echo 'MySQL is unavailable - sleeping'
sleep 1
done
if [ "$i" = 0 ]; then
echo 'MySQL is still unavailable - exiting'
exit 1
fi
- name: Grant MySql Permissions
run: |
CREATE USER 'root'@'%' IDENTIFIED BY '${{secrets.DB_PASSWORD}}';
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON test.* TO 'app_user'@'%';
FLUSH PRIVILEGES;
run: mysql -h 127.0.0.1 --port 3307 -u root -p${{secrets.DB_PASSWORD}} -e "GRANT ALL PRIVILEGES ON test.* TO 'app_user'@'%';FLUSH PRIVILEGES;"
# run: mysql -u root -p

- name: Run tests
run: poetry run task test

0 comments on commit 4ae585f

Please sign in to comment.