Hi,
I wanted to add actions to my project on github and created the following yml file.
name: Update
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e
with:
php-version: '8.1'
- uses: actions/checkout@v3
- name: Install dependencies
run: composer install --prefer-dist --no-ansi --no-interaction --no-progress --no-scripts
- name: Run database migrations
env:
DB_CONNECTION: mysql
DB_DATABASE: database
DB_USERNAME: root
DB_PASSWORD: password
run: php artisan migrate --force
- name: Clear cache
run: php artisan optimize:clear
I couldn't find the problem. Can you help me?