mirror of https://github.com/kcal-app/kcal.git
Add Laravel app setup in CI
This commit is contained in:
parent
5b73358912
commit
872528b47f
|
|
@ -7,18 +7,16 @@ jobs:
|
||||||
- uses: shivammathur/setup-php@v2
|
- uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
php-version: '8.0'
|
php-version: '8.0'
|
||||||
extensions: exif
|
coverage: xdebug
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: composer install --no-progress --no-interaction
|
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
|
- name: Run tests
|
||||||
uses: php-actions/phpunit@v2
|
run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml
|
||||||
with:
|
|
||||||
php_extensions: xdebug
|
|
||||||
configuration: phpunit.xml
|
|
||||||
args: --coverage-clover build/logs/clover.xml
|
|
||||||
env:
|
|
||||||
XDEBUG_MODE: coverage
|
|
||||||
- name: Upload coverage results to Coveralls
|
- name: Upload coverage results to Coveralls
|
||||||
env:
|
env:
|
||||||
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue