|
8 | 8 | DB_DATABASE: phplist |
9 | 9 | DB_USERNAME: root |
10 | 10 | DB_PASSWORD: phplist |
11 | | - BROADCAST_DRIVER: log |
| 11 | + BROADCAST_DRIVER: log |
12 | 12 | services: |
13 | 13 | mysql: |
14 | 14 | image: mysql:5.7 |
|
32 | 32 | php-version: ${{ matrix.php-versions }} |
33 | 33 | extensions: mbstring, dom, fileinfo, mysql |
34 | 34 | coverage: xdebug #optional |
| 35 | + - name: Install Symfony CLI |
| 36 | + run: | |
| 37 | + curl -sS https://get.symfony.com/cli/installer | bash |
| 38 | + export PATH="$HOME/.symfony/bin:$PATH" |
| 39 | + symfony --version |
35 | 40 | - name: Start mysql service |
36 | 41 | run: sudo /etc/init.d/mysql start |
37 | 42 | - name: Verify MySQL connection on host |
|
45 | 50 | uses: actions/cache@v2 |
46 | 51 | with: |
47 | 52 | 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') }} |
50 | 53 | key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} |
51 | 54 | restore-keys: ${{ runner.os }}-composer- |
52 | 55 | - name: Install Composer dependencies |
|
56 | 59 | - name: Linting all php files |
57 | 60 | run: find src/ tests/ public/ -name ''*.php'' -print0 | xargs -0 -n 1 -P 4 php -l; php -l bin/*; |
58 | 61 | - name: Run units tests with phpunit |
59 | | - run: vendor/bin/phpunit tests/Unit/ |
| 62 | + run: vendor/bin/phpunit tests/Unit/ |
60 | 63 | - name: Run integration tests with phpunit |
61 | | - run: | |
| 64 | + run: | |
62 | 65 | export PHPLIST_DATABASE_NAME=${{ env.DB_DATABASE }} |
63 | 66 | export PHPLIST_DATABASE_USER=${{ env.DB_USERNAME }} |
64 | 67 | export PHPLIST_DATABASE_PASSWORD=${{ env.DB_PASSWORD }} |
|
0 commit comments