diff --git a/.github/workflows/larastan.yml b/.github/workflows/larastan.yml index 3e26f20..c62819d 100644 --- a/.github/workflows/larastan.yml +++ b/.github/workflows/larastan.yml @@ -32,15 +32,15 @@ jobs: path: ${{ steps.cache-composer.outputs.dir }} key: ${{ runner.os }}-${{ github.ref_name }}-composer-${{ hashFiles('**/composer.lock') }} + - name: Copy .env to .env.example + run: cp .env.example .env + - name: Install Composer dependencies run: composer install --no-interaction --prefer-dist env: COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }} - - name: Copy .env - run: cp .env.example .env - - - name: Generate key + - name: Generate application key run: php artisan key:generate - name: Setup problem matchers diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 002bbc5..95e1901 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -27,6 +27,9 @@ jobs: path: ${{ steps.cache-composer.outputs.dir }} key: ${{ runner.os }}-${{ github.ref_name }}-composer-${{ hashFiles('**/composer.lock') }} + - name: Copy .env.example to .env + run: cp .env.example .env + - name: Install Composer dependencies run: composer install --no-interaction --prefer-dist env: @@ -43,10 +46,8 @@ jobs: env: FONTAWESOME_NPM_AUTH_TOKEN: ${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }} - - name: Prepare Laravel Application - run: | - cp .env.example .env - php artisan key:generate + - name: Generate application key + run: php artisan key:generate - name: Run tests run: vendor/bin/phpunit