Skip to content

Commit

Permalink
Use mysql 5.7 on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
weiznich committed Mar 5, 2021
1 parent b44b577 commit 4ddaeb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ jobs:
if: runner.os == 'macOS' && matrix.backend == 'mysql'
run: |
brew update &&
brew install mysql@8.0.19_1 &&
brew install mysql@5.7 &&
brew services start mysql &&
brew services stop mysql;sleep 3;brew services start mysql &&
sleep 2 &&
/usr/local/Cellar/mysql/8.0.19_1/bin/mysql -e "create database diesel_test; create database diesel_unit_test; grant all on \`diesel_%\`.* to 'root'@'localhost';" -uroot
/usr/local/Cellar/mysql/5.7.32/bin/mysql -e "create database diesel_test; create database diesel_unit_test; grant all on \`diesel_%\`.* to 'root'@'localhost';" -uroot
echo 'MYSQL_DATABASE_URL=mysql://root@localhost/diesel_test' >> $GITHUB_ENV
echo 'MYSQL_EXAMPLE_DATABASE_URL=mysql://root@localhost/diesel_example' >> $GITHUB_ENV
echo 'MYSQL_UNIT_TEST_DATABASE_URL=mysql://root@localhost/diesel_unit_test' >> $GITHUB_ENV
Expand Down Expand Up @@ -345,7 +345,7 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: check
args: --manifest-path diesel/Cargo.toml --features="sqlite mysql postgres"
args: --features="sqlite mysql postgres"
- name: Run clippy
uses: actions-rs/cargo@v1
with:
Expand Down

0 comments on commit 4ddaeb0

Please sign in to comment.