From ad56f204fad94424cf81786fc11c8ee4268a9d03 Mon Sep 17 00:00:00 2001 From: Pascal Martineau Date: Tue, 5 Aug 2025 13:13:01 -0400 Subject: [PATCH] feat: Initial composer install --- .gitea/workflows/deploy.yaml | 16 ++++++++++++++++ .gitignore | 1 + composer.json | 3 +++ composer.lock | 18 ++++++++++++++++++ 4 files changed, 38 insertions(+) create mode 100644 composer.json create mode 100644 composer.lock diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index dfbd145..68231b7 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -5,10 +5,26 @@ on: [push] jobs: deploy: runs-on: ubuntu-latest + + env: + COMPOSER_CACHE_DIR: ~/.cache/composer + steps: - name: Checkout code uses: actions/checkout@v4 + - name: Show current working directory + run: pwd + + - name: Display existing composer cache (if runner reused) + run: ls -la $COMPOSER_CACHE_DIR || echo "No cache found" + + - name: Install PHP dependencies + run: | + php -v + composer --version + composer install --no-interaction --prefer-dist --optimize-autoloader + - name: Clone WordPress scripts env: TEMPLATES_REPO_TOKEN: ${{ secrets.TEMPLATES_REPO_TOKEN }} diff --git a/.gitignore b/.gitignore index d04ad11..5e6f8bd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /* !/.gitea !/.gitignore +!/composer.* diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..fd393a0 --- /dev/null +++ b/composer.json @@ -0,0 +1,3 @@ +{ + "name": "wp-sites/wp-skeleton" +} \ No newline at end of file diff --git a/composer.lock b/composer.lock new file mode 100644 index 0000000..32279cf --- /dev/null +++ b/composer.lock @@ -0,0 +1,18 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "6acb315fc71daec54cc1b9d8a17898b0", + "packages": [], + "packages-dev": [], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": [], + "platform-dev": [], + "plugin-api-version": "2.6.0" +}