Skip to content

Commit 9a43116

Browse files
committed
reorganizing .env and adjustments to the workflow
1 parent 7a3d1c9 commit 9a43116

File tree

4 files changed

+45
-6
lines changed

4 files changed

+45
-6
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,28 @@ env:
99
jobs:
1010
run:
1111
runs-on: ubuntu-latest
12-
name: PHPCS - PHP-${{ matrix.php }}
13-
strategy:
14-
fail-fast: false
15-
matrix:
16-
php: ['8.0', '8.1' ]
12+
name: Workflow - PHP-${{ matrix.php }}
13+
1714
services:
1815
mysql:
1916
image: mysql:5.7
17+
ports:
18+
- "3306:3306"
2019
env:
2120
MYSQL_ROOT_PASSWORD: secret
21+
MYSQL_USER: phalcon
22+
MYSQL_DATABASE: phalcon_api
23+
MYSQL_PASSWORD: secret
2224
redis:
2325
image: redis:5-alpine
26+
ports:
27+
- "6379:6379"
28+
29+
strategy:
30+
fail-fast: false
31+
matrix:
32+
php: ['8.0', '8.1' ]
33+
2434
steps:
2535
- uses: actions/checkout@v1
2636
- name: Setup PHP
@@ -53,6 +63,7 @@ jobs:
5363
- name: Run tests
5464
if: always()
5565
run: |
66+
sudo php -S 0.0.0.0 -t ./.htrouter.php &
5667
vendor/bin/codecept build
5768
vendor/bin/codecept run unit --coverage-xml=unit-coverage.xml
5869
vendor/bin/codecept run integration --coverage-xml=integration-coverage.xml

codeception.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ modules:
5555

5656
# Get params from .env file
5757
params:
58-
- tests/.env.test
58+
- .env
5959

6060
error_level: "E_ALL"

storage/config/.env.ci

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
APP_DEBUG=true
2+
APP_ENV=development
3+
APP_URL=http://127.0.0.1
4+
APP_NAME="Phalcon API"
5+
APP_BASE_URI=/
6+
APP_SUPPORT_EMAIL=[email protected]
7+
APP_TIMEZONE=UTC
8+
9+
DATA_API_MYSQL_HOST=127.0.0.1
10+
DATA_API_MYSQL_USER=root
11+
DATA_API_MYSQL_PASS=secret
12+
DATA_API_MYSQL_NAME=phalcon_api
13+
14+
DATA_API_REDIS_HOST=127.0.0.1
15+
16+
TOKEN_AUDIENCE=https://phalcon.io
17+
18+
CACHE_PREFIX=api_cache_
19+
CACHE_LIFETIME=86400
20+
21+
APP_IP=127.0.0.1
22+
23+
LOGGER_DEFAULT_FILENAME=api
24+
25+
VERSION=20180401
26+
27+
CODECEPTION_URL=127.0.0.1
28+
CODECEPTION_PORT=80
File renamed without changes.

0 commit comments

Comments
 (0)