Skip to content

Commit fe7f793

Browse files
committed
[MariaDB] Pin version to 11.3.2
1 parent 3c4d04d commit fe7f793

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,14 @@ jobs:
241241
mariadb:
242242
name: DBMS Tests (MariaDB)
243243
runs-on: ubuntu-latest
244+
services:
245+
mysql:
246+
image: mariadb:11.3.2
247+
env:
248+
MYSQL_ROOT_PASSWORD: root
249+
ports:
250+
- 3306:3306
251+
options: --health-cmd="healthcheck.sh --connect --innodb_initialized" --health-interval=10s --health-timeout=5s --health-retries=10
244252

245253
steps:
246254
- uses: actions/checkout@v3
@@ -254,15 +262,8 @@ jobs:
254262
cache: 'maven'
255263
- name: Build SQLancer
256264
run: mvn -B package -DskipTests=true
257-
- name: Install MariaDB
258-
run: |
259-
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
260-
sudo add-apt-repository 'deb [arch=amd64,arm64,ppc64el] http://sfo1.mirrors.digitalocean.com/mariadb/repo/10.3/ubuntu bionic main'
261-
sudo apt update
262-
sudo apt install mariadb-server
263-
sudo systemctl start mariadb
264265
- name: Create SQLancer User
265-
run: sudo mysql -uroot -proot -e "CREATE USER 'sqlancer'@'localhost' IDENTIFIED BY 'sqlancer'; GRANT ALL PRIVILEGES ON * . * TO 'sqlancer'@'localhost';"
266+
run: sudo mysql -h 127.0.0.1 -uroot -proot -e "CREATE USER 'sqlancer'@'%' IDENTIFIED BY 'sqlancer'; GRANT ALL PRIVILEGES ON * . * TO 'sqlancer'@'%';"
266267
- name: Run Tests
267268
run: MARIADB_AVAILABLE=true mvn -Dtest=TestMariaDB test
268269

0 commit comments

Comments
 (0)