Skip to content

Commit

Permalink
ci: change ci flows
Browse files Browse the repository at this point in the history
  • Loading branch information
agustig committed Mar 24, 2024
1 parent c8b86f4 commit 6ba35c7
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ jobs:
extensions: sqlite, pdo_sqlite, pcntl, zip, intl, exif, mbstring, dom, fileinfo, mysql
coverage: xdebug

- name: Create .env
run: php -r "file_exists('.env') || copy('.env.example', '.env'); echo file_get_contents('.env');"

- name: Start MySQL Service
run: sudo /etc/init.d/mysql start

- name: Get composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
Expand All @@ -66,10 +72,8 @@ jobs:
- name: Install Composer dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader

- name: Prepare Laravel Application
run: |
php -r "file_exists('.env') || copy('.env.example', '.env');"
php artisan key:generate
- name: Generate Applications Key
run: php artisan key:generate

- name: Clear Config
run: php artisan config:clear
Expand Down

0 comments on commit 6ba35c7

Please sign in to comment.