Skip to content

Commit d707c13

Browse files
committed
Generate app key when running tests
1 parent 0539406 commit d707c13

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/code-quality.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,13 @@ jobs:
6666
run: phpcs
6767

6868
- name: Run tests and collect coverage
69-
run: vendor/bin/phpunit --coverage-clover coverage.xml
69+
run: |
70+
php artisan key:generate
71+
vendor/bin/phpunit --coverage-clover coverage.xml
7072
7173
- name: Upload coverage to Codecov
74+
# We only care about PHP 8.4 (latest stable) for our code coverage report
75+
if: matrix.php-versions == 8.4
7276
uses: codecov/codecov-action@v5
7377
env:
7478
CODECOV_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }}

0 commit comments

Comments
 (0)