Skip to content

Commit

Permalink
fix: add sqlancer user
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenglinli committed Jul 3, 2023
1 parent 5a1d394 commit 3b3c927
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,25 @@ jobs:
sudo rm -rf /usr/local/.ghcup
sudo rm -rf /opt/ghc
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Check disk space
run: df . -H
- name: Set up StoneDB
run: |
df -H
docker pull stoneatom/stonedb
docker run -p 3306:3306 -itd -e MYSQL_ROOT_PASSWORD='123456' stoneatom/stonedb
docker ps
ContainerID=$(docker ps --filter ancestor=stoneatom/stonedb --format "{{.ID}}")
docker exec $ContainerID bash
- name: Create SQLancer user
run: docker exec $ContainerID sudo /opt/stonedb57/install/bin/mysql -uroot -p123456 -e "CREATE USER 'sqlancer'@'%' IDENTIFIED WITH mysql_native_password BY 'sqlancer'; GRANT ALL PRIVILEGES ON *.* TO 'sqlancer'@'%' WITH GRANT OPTION; FLUSH PRIVILEGES;"
- name: Set up JDK 11
uses: actions/setup-java@v1.4.4
with:
java-version: 11
- name: Build
run: mvn -B package -DskipTests=true
- name: Check disk space
run: df . -H
- name: SQLite Tests
run: |
STONEDB_AVAILABLE=true mvn -Dtest=TestStoneDB
STONEDB_AVAILABLE=true mvn test -Dtest=TestStoneDB

0 comments on commit 3b3c927

Please sign in to comment.