|
36 | 36 | steps: |
37 | 37 | # Checkout the latest code from the repo |
38 | 38 | - name: Checkout source |
| 39 | + # if: {{ false }} |
| 40 | + # continue-on-error: true |
39 | 41 | uses: actions/checkout@v3 |
40 | 42 |
|
41 | 43 | # Setup which version of Python to use |
|
49 | 51 | run: python -c "import sys; print(sys.version)" |
50 | 52 |
|
51 | 53 | # Install the databases |
52 | | - - name: Install postgres |
53 | | - run: | |
54 | | - sudo apt-get install postgresql |
55 | | - # Disable fsync for speed, don't care about data durability when testing |
56 | | - sudo sed -i -e '$a\fsync = off' /etc/postgresql/*/*/postgresql.conf |
57 | | - sudo service postgresql restart; sleep 30 |
58 | | - # set up postgresql database |
59 | | - sudo -u postgres psql -c "CREATE ROLE rounduptest WITH CREATEDB LOGIN PASSWORD 'rounduptest';" -U postgres |
60 | | -
|
61 | 54 | - name: Install mysql/mariadb |
62 | | - continue-on-error: true |
63 | 55 | run: | |
64 | 56 | set -xv |
65 | 57 | # set up mysql database |
|
70 | 62 | sleep 5 |
71 | 63 | sudo service mysql restart; sleep 30 |
72 | 64 | ps -ef | grep mysqld |
73 | | - sudo mysql -u root -p --protocol SOCKET -e 'GRANT ALL ON rounduptest.* TO rounduptest@localhost IDENTIFIED BY "rounduptest";' |
| 65 | + sudo mysql -u root -p "" --protocol SOCKET -e 'GRANT ALL ON rounduptest.* TO rounduptest@localhost IDENTIFIED BY "rounduptest";' |
| 66 | + |
| 67 | + - name: Install postgres |
| 68 | + run: | |
| 69 | + sudo apt-get install postgresql |
| 70 | + # Disable fsync for speed, don't care about data durability when testing |
| 71 | + sudo sed -i -e '$a\fsync = off' /etc/postgresql/*/*/postgresql.conf |
| 72 | + sudo service postgresql restart; sleep 30 |
| 73 | + # set up postgresql database |
| 74 | + sudo -u postgres psql -c "CREATE ROLE rounduptest WITH CREATEDB LOGIN PASSWORD 'rounduptest';" -U postgres |
74 | 75 |
|
75 | 76 | - name: install redis |
76 | 77 | run: | |
|
0 commit comments