Mercurial > p > roundup > code
comparison .github/workflows/ci-test.yml @ 6875:f1f947f6e476
try password found at
https://ovirium.com/blog/how-to-make-mysql-work-in-your-github-actions/
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Thu, 01 Sep 2022 10:27:28 -0400 |
| parents | 70a78f281179 |
| children | 30656a34e2dd |
comparison
equal
deleted
inserted
replaced
| 6874:70a78f281179 | 6875:f1f947f6e476 |
|---|---|
| 60 grep max_allowed /etc/mysql/mysql.conf.d/mysqld.cnf | 60 grep max_allowed /etc/mysql/mysql.conf.d/mysqld.cnf |
| 61 ls /etc/mysql/conf.d/ /etc/mysql/mysql.conf.d/ | 61 ls /etc/mysql/conf.d/ /etc/mysql/mysql.conf.d/ |
| 62 sleep 5 | 62 sleep 5 |
| 63 sudo service mysql restart; sleep 30 | 63 sudo service mysql restart; sleep 30 |
| 64 ps -ef | grep mysqld | 64 ps -ef | grep mysqld |
| 65 sudo mysql -u root -p "" --protocol SOCKET -e 'GRANT ALL ON rounduptest.* TO rounduptest@localhost IDENTIFIED BY "rounduptest";' | 65 sudo mysql -u root -p root -e 'GRANT ALL ON rounduptest.* TO rounduptest@localhost IDENTIFIED BY "rounduptest";' |
| 66 | 66 |
| 67 - name: Install postgres | 67 - name: Install postgres |
| 68 run: | | 68 run: | |
| 69 sudo apt-get install postgresql | 69 sudo apt-get install postgresql |
| 70 # Disable fsync for speed, don't care about data durability when testing | 70 # Disable fsync for speed, don't care about data durability |
| 71 # when testing | |
| 71 sudo sed -i -e '$a\fsync = off' /etc/postgresql/*/*/postgresql.conf | 72 sudo sed -i -e '$a\fsync = off' /etc/postgresql/*/*/postgresql.conf |
| 72 sudo service postgresql restart; sleep 30 | 73 sudo service postgresql restart; sleep 30 |
| 73 # set up postgresql database | 74 # set up postgresql database |
| 74 sudo -u postgres psql -c "CREATE ROLE rounduptest WITH CREATEDB LOGIN PASSWORD 'rounduptest';" -U postgres | 75 sudo -u postgres psql -c "CREATE ROLE rounduptest WITH CREATEDB LOGIN PASSWORD 'rounduptest';" -U postgres |
| 75 | 76 |
