Skip to content

Commit

Permalink
github actions mysql service
Browse files Browse the repository at this point in the history
  • Loading branch information
feropeterko committed Feb 23, 2022
1 parent 497b087 commit 61b953f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,9 @@ jobs:
- name: "Tests"
run: "make tests"
env:
DATABASE_HOST: localhost
DATABASE_USER: root
DATABASE_PASSWORD: test
DATABASE_NAME: test
DATABASE_DSN: 'mysql:host=127.0.0.1;port=3306;dbname=test'
DATABASE_USER: 'root'
DATABASE_PASSWORD: 'test'

tests-code-coverage:
name: "Tests with code coverage"
Expand Down Expand Up @@ -293,10 +292,9 @@ jobs:
- name: "Tests"
run: "make coverage-clover"
env:
DATABASE_HOST: localhost
DATABASE_USER: root
DATABASE_PASSWORD: test
DATABASE_NAME: test
DATABASE_DSN: 'mysql:host=127.0.0.1;port=3306;dbname=test'
DATABASE_USER: 'root'
DATABASE_PASSWORD: 'test'

- name: "Coveralls.io"
env:
Expand Down
2 changes: 1 addition & 1 deletion tests/config/tests.neon
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ parameters:


database:
dsn: 'mysql:host=%env.DATABASE_HOST%;dbname=%env.DATABASE_NAME%'
dsn: %env.DATABASE_DSN%
user: %env.DATABASE_USER%
password: %env.DATABASE_PASSWORD%

Expand Down

0 comments on commit 61b953f

Please sign in to comment.