From 894f8b20370f975810d701488c853b7684a09b42 Mon Sep 17 00:00:00 2001 From: Chao Yang Date: Sun, 10 Mar 2024 01:07:45 -0600 Subject: [PATCH 1/3] Fix bash syntax errors --- .github/run_integration_tests.sh | 2 +- .github/workflows/ci.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/run_integration_tests.sh b/.github/run_integration_tests.sh index 2f9532f6..184a04f6 100644 --- a/.github/run_integration_tests.sh +++ b/.github/run_integration_tests.sh @@ -2,7 +2,7 @@ set -exo pipefail -if [ $DB == 'postgres' ] +if [ "$DB" == "postgres" ] then sudo apt-get install postgresql-client -y fi diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1e37d762..a84417f5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -164,7 +164,7 @@ jobs: - name: Run specs run: | - if [ $MT == '1' ] + if [ "$MT" = "1" ] then crystal spec -Dpreview_mt else From c66ffd956922c7fe0e962ffb1ffa1dc3d3e1d809 Mon Sep 17 00:00:00 2001 From: Chao Yang Date: Tue, 12 Mar 2024 00:09:19 -0500 Subject: [PATCH 2/3] Use mysql:8.0.30 --- .github/setup_mysql.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/setup_mysql.sh b/.github/setup_mysql.sh index 81825528..2f7ffd44 100644 --- a/.github/setup_mysql.sh +++ b/.github/setup_mysql.sh @@ -2,7 +2,7 @@ set -exo pipefail -MYSQL="mysql:8.0" +MYSQL="mysql:8.0.30" tries=0 sudo service mysql stop From 6a70980b6d15e8336583d4e05af1c0080f0a282a Mon Sep 17 00:00:00 2001 From: Chao Yang Date: Tue, 12 Mar 2024 00:32:58 -0500 Subject: [PATCH 3/3] Update crystal to 1.11.2 from 1.11.1 --- .github/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a84417f5..e6ec17d8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -96,22 +96,22 @@ jobs: DB: mysql - crystal_version: 1.10.1 DB: postgres - - crystal_version: 1.11.1 + - crystal_version: 1.11.2 DB: mysql integration: true linter: true - - crystal_version: 1.11.1 + - crystal_version: 1.11.2 DB: postgres integration: true linter: true - - crystal_version: 1.11.1 + - crystal_version: 1.11.2 DB: postgres other: MT=1 - - crystal_version: 1.11.1 + - crystal_version: 1.11.2 DB: postgres pair: true other: PAIR_DB_USER=root PAIR_DB_PASSWORD= - - crystal_version: 1.11.1 + - crystal_version: 1.11.2 DB: mysql pair: true other: PAIR_DB_USER=dbuser PAIR_DB_PASSWORD=dbpassword