From 46df707051d386e7d749e33e774de09c2bbcbdc1 Mon Sep 17 00:00:00 2001 From: Alfred Nutile Date: Mon, 25 Mar 2024 07:22:57 -0400 Subject: [PATCH] oops add composer install back --- .github/workflows/ci-cd.yml | 29 ++++++++++- app/Domains/Documents/ChunkDocumentRepo.php | 7 +++ composer.json | 1 + composer.lock | 53 ++++++++++++++++++++- 4 files changed, 88 insertions(+), 2 deletions(-) create mode 100644 app/Domains/Documents/ChunkDocumentRepo.php diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 01dce5b5..0d5d614d 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -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 diff --git a/app/Domains/Documents/ChunkDocumentRepo.php b/app/Domains/Documents/ChunkDocumentRepo.php new file mode 100644 index 00000000..5303612c --- /dev/null +++ b/app/Domains/Documents/ChunkDocumentRepo.php @@ -0,0 +1,7 @@ +=7.1", + "symfony/polyfill-mbstring": "^1.18" + }, + "type": "library", + "autoload": { + "psr-0": { + "Smalot\\PdfParser\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-3.0" + ], + "authors": [ + { + "name": "Sebastien MALOT", + "email": "sebastien@malot.fr" + } + ], + "description": "Pdf parser library. Can read and extract information from pdf file.", + "homepage": "https://www.pdfparser.org", + "keywords": [ + "extract", + "parse", + "parser", + "pdf", + "text" + ], + "support": { + "issues": "https://github.com/smalot/pdfparser/issues", + "source": "https://github.com/smalot/pdfparser/tree/v2.9.0" + }, + "time": "2024-03-01T09:51:10+00:00" + }, { "name": "spatie/commonmark-shiki-highlighter", "version": "2.3.0",