Skip to content

Commit

Permalink
oops add composer install back
Browse files Browse the repository at this point in the history
  • Loading branch information
alnutile committed Mar 25, 2024
1 parent fb02066 commit 46df707
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 2 deletions.
29 changes: 28 additions & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,38 @@ jobs:
extensions: mbstring, dom, fileinfo, pgsql, grpc, :psr
coverage: xdebug

- name: Get composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache composer dependencies
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
# Use composer.json for key, if composer.lock is not committed.
# key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

- name: Install Composer dependencies
run: |
composer config http-basic.packages.craftable.pro "${{ secrets.CRAFTABLE_PRO_EMAIL }}" "${{ secrets.CRAFTABLE_PRO_LICENCE_KEY }}"
composer install --no-interaction --prefer-dist
- name: Prepare the application
run: |
php -r "file_exists('.env') || copy('.env.example', '.env');"
php artisan key:generate
- name: Clear Config
run: php artisan config:clear


- name: PHP Code Style (phpcs)
run: |
composer fix
- name: PHP Code Style (phpcs)
- name: PHP Static Review
run: |
composer stan
Expand Down
7 changes: 7 additions & 0 deletions app/Domains/Documents/ChunkDocumentRepo.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

namespace App\Domains\Documents;

class ChunkDocumentRepo
{
}
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"laravel/tinker": "^2.9",
"openai-php/laravel": "^0.8.1",
"owenvoke/blade-fontawesome": "^2.3",
"smalot/pdfparser": "^2.9",
"spatie/laravel-data": "^4.4",
"spatie/laravel-markdown": "^2.3",
"tightenco/ziggy": "^2.0"
Expand Down
53 changes: 52 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 46df707

Please sign in to comment.