Skip to content

Commit 707b0a1

Browse files
committed
ISSUE-337: install symfony
1 parent 7e19d05 commit 707b0a1

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
DB_DATABASE: phplist
99
DB_USERNAME: root
1010
DB_PASSWORD: phplist
11-
BROADCAST_DRIVER: log
11+
BROADCAST_DRIVER: log
1212
services:
1313
mysql:
1414
image: mysql:5.7
@@ -27,11 +27,16 @@ jobs:
2727
- name: Checkout
2828
uses: actions/checkout@v2
2929
- name: Setup PHP, with composer and extensions
30-
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
30+
uses: shivammathur/setup-php@v2
3131
with:
3232
php-version: ${{ matrix.php-versions }}
3333
extensions: mbstring, dom, fileinfo, mysql
3434
coverage: xdebug #optional
35+
- name: Install Symfony CLI
36+
run: |
37+
curl -sS https://get.symfony.com/cli/installer | bash
38+
mv $HOME/.symfony*/bin/symfony /usr/local/bin/symfony
39+
symfony version
3540
- name: Start mysql service
3641
run: sudo /etc/init.d/mysql start
3742
- name: Verify MySQL connection on host
@@ -45,8 +50,6 @@ jobs:
4550
uses: actions/cache@v2
4651
with:
4752
path: ${{ steps.composer-cache.outputs.dir }}
48-
# Use composer.json for key, if composer.lock is not committed.
49-
# key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
5053
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
5154
restore-keys: ${{ runner.os }}-composer-
5255
- name: Install Composer dependencies
@@ -56,9 +59,9 @@ jobs:
5659
- name: Linting all php files
5760
run: find src/ tests/ public/ -name ''*.php'' -print0 | xargs -0 -n 1 -P 4 php -l; php -l bin/*;
5861
- name: Run units tests with phpunit
59-
run: vendor/bin/phpunit tests/Unit/
62+
run: vendor/bin/phpunit tests/Unit/
6063
- name: Run integration tests with phpunit
61-
run: |
64+
run: |
6265
export PHPLIST_DATABASE_NAME=${{ env.DB_DATABASE }}
6366
export PHPLIST_DATABASE_USER=${{ env.DB_USERNAME }}
6467
export PHPLIST_DATABASE_PASSWORD=${{ env.DB_PASSWORD }}

0 commit comments

Comments
 (0)