From 95139b99bef72e2f143c87218bc49790b013be3a Mon Sep 17 00:00:00 2001 From: Fernando Date: Wed, 3 Jul 2024 01:46:02 -0400 Subject: [PATCH] refactor: update build yml --- .github/workflows/build.yml | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b2c22c30..40335b9a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,31 +18,13 @@ jobs: php-versions: [8.2] steps: - name: Checkout repository - uses: actions/checkout@v2 - - name: Setup cache environment - id: extcache - uses: shivammathur/cache-extensions@v1 - with: - php-version: ${{ matrix.php-versions }} - extensions: mbstring, xml, ctype, iconv, pcov - key: cache-v1 + uses: actions/checkout@v4.1.7 - name: Set up PHP uses: shivammathur/setup-php@v2 with: - php-version: ${{ matrix.php-versions }} - extensions: mbstring, xml, ctype, iconv, pcov + php-version: 8.2 + extensions: mbstring, json, curl, pcov coverage: pcov - - name: Get composer cache directory - id: composer-cache - run: echo "::set-output name=dir::$(composer config cache-files-dir)" - - name: Validate composer.json and composer.lock - run: composer validate - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: ${{ steps.composer-cache.outputs.dir }} - key: composer-${{ hashFiles('**/composer.lock') }} - restore-keys: composer- - name: Install dependencies run: composer install --no-interaction --no-progress --prefer-dist - name: Run PHPUnit tests