Try again with syntax fixes

This commit is contained in:
Griatch 2020-05-17 00:13:38 +02:00 committed by GitHub
parent 9c85ba2ffb
commit 60d36d309b

View file

@ -22,28 +22,35 @@ jobs:
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: Set up postgreSQL database
- name: Start postgreSQL server
if: ${{ matrix.TESTING_DB == 'postgresql' }} if: ${{ matrix.TESTING_DB == 'postgresql' }}
uses: harmon758/postgresql-action@v1 uses: harmon758/postgresql-action@v1
with: with:
postgresql version: '11' postgresql version: '11'
- name: Setup PostgreSQL database
if: ${{ matrix.TESTING_DB == 'postgresql' }}
run: | run: |
psql --version psql --version
sudo service postgresql start sudo service postgresql start
psql -U postgres -c "CREATE DATABASE evennia;" psql -U postgres -c "CREATE DATABASE evennia;"
psql -U postgres -c "CREATE USER evennia WITH PASSWORD 'password';" psql -U postgres -c "CREATE USER evennia WITH PASSWORD 'password';"
psql -U postgres -c "ALTER USER evennia CREATEDB;" psql -U postgres -c "ALTER USER evennia CREATEDB;"
- name: Set up MySQL database
- name: Start MySQL server
if: ${{ matrix.TESTING_DB == 'mysql' }} if: ${{ matrix.TESTING_DB == 'mysql' }}
uses: mirromutth/mysql-action@v1.1 uses: mirromutth/mysql-action@v1.1
with: with:
mysql version: '8.0' mysql version: '8.0'
- name: Setup MySQL database
if: ${{ matrix.TESTING_DB == 'mysql' }}
run: | run: |
mysql --version mysql --version
sudo service mysql start sudo service mysql start
mysql -u root -e "CREATE DATABASE evennia CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;" mysql -u root -e "CREATE DATABASE evennia CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;"
mysql -u root -e "CREATE USER 'evennia'@'localhost' IDENTIFIED BY 'password';" mysql -u root -e "CREATE USER 'evennia'@'localhost' IDENTIFIED BY 'password';"
mysql -u root -e "GRANT ALL ON *.* TO 'evennia'@'localhost' IDENTIFIED BY 'password';" mysql -u root -e "GRANT ALL ON *.* TO 'evennia'@'localhost' IDENTIFIED BY 'password';"
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip