diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 109492e..4f679c3 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -27,7 +27,7 @@ jobs: php-version: [8.3] os: [ubuntu-latest] runs-on: ${{ matrix.os }} - name: Code coverage with PHP ${{ matrix.php-versions }} on ${{ matrix.os }} + name: Code coverage with PHP ${{ matrix.php-version }} on ${{ matrix.os }} env: php-extensions: intl, pcov php-coverage: pcov @@ -67,6 +67,11 @@ jobs: extensions: ${{ env.php-extensions }} coverage: ${{ env.php-coverage }} + - name: Install Dependencies + run: | + composer self-update && composer install --no-interaction --no-progress --prefer-dist -vv + npm run build + - name: Prepare Env. run: | # Copy .env, Generate key, Set directory permissions, Create empty SQLite DB @@ -77,11 +82,6 @@ jobs: rm -f storage/database/visual-laravel.sqlite touch storage/database/visual-laravel.sqlite - - name: Install Dependencies - run: | - composer self-update && composer install --no-interaction --no-progress --prefer-dist -vv - npm run build - - name: Run coverage tests env: DB_CONNECTION: sqlite diff --git a/.github/workflows/laravel-tests.yml b/.github/workflows/laravel-tests.yml index 671189f..2e25ac0 100644 --- a/.github/workflows/laravel-tests.yml +++ b/.github/workflows/laravel-tests.yml @@ -27,7 +27,7 @@ jobs: php-version: [8.2, 8.3, 8.4] os: [ubuntu-latest] runs-on: ${{ matrix.os }} - name: PHPUnit tests with PHP ${{ matrix.php-versions }} on ${{ matrix.os }} + name: PHPUnit tests with PHP ${{ matrix.php-version }} on ${{ matrix.os }} env: php-extensions: intl, pcov php-coverage: pcov @@ -67,6 +67,11 @@ jobs: extensions: ${{ env.php-extensions }} coverage: ${{ env.php-coverage }} + - name: Install Dependencies + run: | + composer self-update && composer install --no-interaction --no-progress --prefer-dist -vv + npm run build + - name: Prepare Env. run: | # Copy .env, Generate key, Set directory permissions, Create empty SQLite DB @@ -77,11 +82,6 @@ jobs: rm -f storage/database/visual-laravel.sqlite touch storage/database/visual-laravel.sqlite - - name: Install Dependencies - run: | - composer self-update && composer install --no-interaction --no-progress --prefer-dist -vv - npm run build - - name: Run PHPUnit/Pest tests env: DB_CONNECTION: sqlite