Skip to content

Commit f9e3eb9

Browse files
committed
Set app key in phpunit config
1 parent 091ce11 commit f9e3eb9

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/code-quality.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,15 @@ jobs:
6666
run: phpcs
6767

6868
- name: Run tests and collect coverage
69-
run: |
70-
touch .env
71-
php artisan key:generate
72-
vendor/bin/phpunit --coverage-clover coverage.xml
69+
run: vendor/bin/phpunit --coverage-clover coverage.xml
7370

7471
- name: Upload coverage to Codecov
7572
# We only care about PHP 8.4 (latest stable) for our code coverage report
7673
if: matrix.php-versions == 8.4
7774
uses: codecov/codecov-action@v5
7875
env:
7976
CODECOV_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }}
77+
8078
build-and-push-docker:
8179
runs-on: ubuntu-latest
8280
needs: code-quality

phpunit.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
</report>
2727
</coverage>
2828
<php>
29+
<env name="APP_KEY" value="base64:i3E0D+uiy8UIqvIOnOjDml/2OHXQaIVF7rqDIxM78AE=" />
2930
<env name="APP_ENV" value="testing" />
3031
<env name="BCRYPT_ROUNDS" value="4" />
3132
<env name="CACHE_DRIVER" value="array" />

0 commit comments

Comments
 (0)