Skip to content

Commit

Permalink
feat: Updated .github/workflows/php.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Mar 2, 2024
1 parent 3effe43 commit eb91d9f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

steps:
# This step checks out a copy of your repository.
- uses: actions/checkout@v3
- uses: actions/checkout@v2
with:
fetch-depth: 0
id: checkout
Expand All @@ -30,8 +30,7 @@ jobs:
if: steps.checkout.outcome == 'success'
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, xml, zip, pdo_mysql
php-version: '8.2'

# This step caches the Composer packages for faster execution.
- name: Cache Composer packages
Expand All @@ -43,17 +42,16 @@ jobs:
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
# This step validates the composer.json and composer.lock files.
- name: Validate composer.json and composer.lock
id: composer-validate
if: steps.setup-php.outcome == 'success'
run: composer validate --strict
run: composer validate

# This step installs the project dependencies.
- name: Install dependencies
id: composer-install
run: composer install --prefer-dist --no-progress --no-suggest
run: composer install --prefer-dist --no-progress

# This step sets up Go environment for the job.
- name: Set up Go
Expand Down

0 comments on commit eb91d9f

Please sign in to comment.