Try to fix mysql service for github actions
This commit is contained in:
5
.github/workflows/tests.yml
vendored
5
.github/workflows/tests.yml
vendored
@@ -36,8 +36,7 @@ jobs:
|
||||
image: mysql:5.7
|
||||
env:
|
||||
MYSQL_USER: root
|
||||
MYSQL_PASSWORD: ''
|
||||
MYSQL_ALLOW_EMPTY_PASSWORD: yes
|
||||
MYSQL_PASSWORD: 'BestPasswordEver'
|
||||
ports:
|
||||
- 3306:3306
|
||||
options: >-
|
||||
@@ -49,7 +48,7 @@ jobs:
|
||||
steps:
|
||||
- name: Verify MySQL connection from host
|
||||
run: |
|
||||
mysql --host 127.0.0.1 --port 3306 -uroot -e "SHOW DATABASES"
|
||||
mysql --host 127.0.0.1 --port 3306 -uroot -pBestPasswordEver -e "SHOW DATABASES"
|
||||
if: matrix.db == 'mysql'
|
||||
|
||||
- name: Checkout Redmine
|
||||
|
||||
@@ -29,7 +29,7 @@ linters:
|
||||
- Lint/Void
|
||||
- Metrics/BlockLength
|
||||
- Metrics/BlockNesting
|
||||
- Metrics/LineLength
|
||||
- Layout/LineLength
|
||||
- Naming/FileName
|
||||
- Rails/OutputSafety
|
||||
- Style/ConditionalAssignment
|
||||
|
||||
@@ -4,7 +4,7 @@ production:
|
||||
host: 127.0.0.1
|
||||
port: 3306
|
||||
username: root
|
||||
password:
|
||||
password: BestPasswordEver
|
||||
encoding: utf8mb4
|
||||
|
||||
development:
|
||||
@@ -13,7 +13,7 @@ development:
|
||||
port: 3306
|
||||
host: 127.0.0.1
|
||||
username: root
|
||||
password:
|
||||
password: BestPasswordEver
|
||||
encoding: utf8mb4
|
||||
|
||||
test:
|
||||
@@ -22,5 +22,5 @@ test:
|
||||
port: 3306
|
||||
host: 127.0.0.1
|
||||
username: root
|
||||
password:
|
||||
password: BestPasswordEver
|
||||
encoding: utf8mb4
|
||||
|
||||
Reference in New Issue
Block a user