Skip to content

Commit

Permalink
Update php.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Dilan032 committed Jun 20, 2024
1 parent 3662fa0 commit 9805927
Showing 1 changed file with 10 additions and 23 deletions.
33 changes: 10 additions & 23 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: PHP Composer
name: CI Workflow

on:
push:
Expand All @@ -11,29 +11,16 @@ permissions:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Validate composer.json and composer.lock
run: composer validate --strict

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer install --prefer-dist --no-progress

# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
# Docs: https://getcomposer.org/doc/articles/scripts.md

# - name: Run test suite
# run: composer run-script test

# Add other steps as needed
# For example, running tests or linters

# - name: Run tests
# run: ./run-tests.sh

# - name: Lint code
# run: ./lint.sh

0 comments on commit 9805927

Please sign in to comment.