fix: gh actions #92
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Laravel | |
on: | |
workflow_dispatch: | |
push: | |
# pull_request: | |
# branches: [ "1.16/release" ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
env: | |
DB_CONNECTION: testing | |
APP_ENV: testing | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Copy .env | |
run: php -r "file_exists('.env') || copy('.env.ghactions', '.env');" | |
- name: Install Dependencies | |
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist | |
- name: Generate key | |
run: php artisan key:generate | |
- name: Passport install | |
run: php .docker/passport-install.php . | |
- name: Directory Permissions | |
run: chmod -R 777 storage bootstrap/cache | |
- name: Key Permissions | |
run: chmod 600 ./storage/*.key | |
- name: Run tests | |
run: | | |
PHPUNIT_SKIP_MYSQL_TEST=1 XDEBUG_MODE=coverage vendor/bin/phpunit | |
- name: Check coverage | |
run: | | |
php artisan arc:test:coverage target/coverage/index.xml | |
# gh act -j test |