Skip to content

Commit

Permalink
GA database setup
Browse files Browse the repository at this point in the history
  • Loading branch information
niden committed Oct 12, 2022
1 parent 92dfb18 commit 66b56d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
DB_ADAPTER=Mysql
DB_HOST=localhost
DB_USERNAME=root
DB_PASSWORD=root
DB_USERNAME=phalcon
DB_PASSWORD=secret
DB_DBNAME=invo
DB_CHARSET=utf8

Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@ jobs:
services:
mysql:
image: mysql:5.7
env:
MYSQL_ROOT_PASSWORD: root
ports:
- "3306:3306"
env:
MYSQL_ROOT_PASSWORD: secret
MYSQL_USER: phalcon
MYSQL_DATABASE: invo
MYSQL_PASSWORD: secret

strategy:
fail-fast: false
Expand All @@ -24,10 +27,6 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Init Database
run: |
mysql -uroot -h127.0.0.1 -proot -e 'CREATE DATABASE IF NOT EXISTS `invo`;'
- name: Copy .env file
run: cp .env.example .env

Expand Down

0 comments on commit 66b56d0

Please sign in to comment.