From 872528b47fc6f023383a56c19003372cb50560ab Mon Sep 17 00:00:00 2001 From: "Christopher C. Wells" Date: Sun, 28 Mar 2021 15:07:13 -0700 Subject: [PATCH] Add Laravel app setup in CI --- .github/workflows/ci.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9ef12cc..a171a17 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,18 +7,16 @@ jobs: - uses: shivammathur/setup-php@v2 with: php-version: '8.0' - extensions: exif + coverage: xdebug - uses: actions/checkout@v2 - name: Install dependencies run: composer install --no-progress --no-interaction + - name: Generate app key + run: | + php -r "file_exists('.env') || copy('.env.example', '.env');" + php artisan key:generate - name: Run tests - uses: php-actions/phpunit@v2 - with: - php_extensions: xdebug - configuration: phpunit.xml - args: --coverage-clover build/logs/clover.xml - env: - XDEBUG_MODE: coverage + run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml - name: Upload coverage results to Coveralls env: COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}