Skip to content

Commit 890a0ae

Browse files
committed
Use GitHub Actions to test MariaDB
1 parent 9558bfb commit 890a0ae

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,29 @@ jobs:
6363
run: mvn -B package -DskipTests=true
6464
- name: DuckDB Tests
6565
run: mvn -Dtest=TestDuckDB test
66+
67+
mariadb:
68+
name: MariaDB Tests
69+
runs-on: ubuntu-latest
70+
71+
steps:
72+
- uses: actions/checkout@v2
73+
with:
74+
fetch-depth: 0
75+
- name: Set up JDK 1.8
76+
uses: actions/setup-java@v1
77+
with:
78+
java-version: 1.8
79+
- name: Build SQLancer
80+
run: mvn -B package -DskipTests=true
81+
- name: Install MariaDB
82+
run: |
83+
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
84+
sudo add-apt-repository 'deb [arch=amd64,arm64,ppc64el] http://sfo1.mirrors.digitalocean.com/mariadb/repo/10.3/ubuntu bionic main'
85+
sudo apt update
86+
sudo apt install mariadb-server
87+
sudo systemctl start mariadb
88+
- name: Create SQLancer User
89+
run: sudo mysql -uroot -proot -e "CREATE USER 'sqlancer'@'localhost' IDENTIFIED BY 'sqlancer'; GRANT ALL PRIVILEGES ON * . * TO 'sqlancer'@'localhost';"
90+
- name: Run Tests
91+
run: MARIADB_AVAILABLE=true mvn -Dtest=TestMariaDB test

0 commit comments

Comments
 (0)