Update laravel.yml

pull/22/head
A1Gard 1 year ago committed by GitHub
parent 6d7f5e4e03
commit 4e4eadf40c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -24,32 +24,32 @@ jobs:
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Verify MySQL connection - name: Verify MySQL connection
run: | run: |
mysql --version mysql --version
sudo apt-get install -y mysql-client sudo apt-get install -y mysql-client
mysql --host 127.0.0.1 --port ${{ job.services.mysql.ports['3306'] }} -uuser -psecret -e "SHOW DATABASES" mysql --host 127.0.0.1 --port ${{ job.services.mysql.ports['3306'] }} -uuser -psecret -e "SHOW DATABASES"
- name: Copy .env
- name: Copy .env run: php -r "file_exists('.env') || copy('.env.github', '.env');"
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
- name: Install Dependencies
- name: Install Dependencies run: composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
run: composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
- name: Directory Permissions
- name: Directory Permissions run: chmod -R 777 storage bootstrap/cache
run: chmod -R 777 storage bootstrap/cache
- name: Generate key - name: Execute tests (Unit and Feature tests) via PHPUnit
env: env:
MYSQL_DATABASE: test_db MYSQL_DATABASE: test_db
DB_USERNAME: user DB_USERNAME: user
DB_PASSWORD: secret DB_PASSWORD: secret
DB_PORT: ${{ job.services.mysql.ports[3306] }} DB_PORT: ${{ job.services.mysql.ports[3306] }}
run: php artisan key:generate run: php artisan key:generate
- name: Database seeder test - name: Database seeder test
run: php artisan migrate:fresh --seed run: php artisan migrate:fresh --seed
- name: Developer test - name : Developer test
- run: php artisan test run: php artisan tes

Loading…
Cancel
Save