File tree Expand file tree Collapse file tree 1 file changed +12
-18
lines changed Expand file tree Collapse file tree 1 file changed +12
-18
lines changed Original file line number Diff line number Diff line change 1
- name : PHP Composer
1
+ name : PHP CI
2
2
3
3
on :
4
4
push :
@@ -15,25 +15,19 @@ jobs:
15
15
runs-on : ubuntu-latest
16
16
17
17
steps :
18
- - uses : actions/checkout@v4
18
+ - name : Checkout Code
19
+ uses : actions/checkout@v4
19
20
20
- - name : Validate composer.json and composer.lock
21
- run : composer validate --strict
22
-
23
- - name : Cache Composer packages
24
- id : composer-cache
25
- uses : actions/cache@v3
21
+ - name : Set up PHP
22
+ uses : shivammathur/setup-php@v2
26
23
with :
27
- path : vendor
28
- key : ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
29
- restore-keys : |
30
- ${{ runner.os }}-php-
24
+ php-version : ' 8.0' # Replace with the PHP version you are using
25
+ extensions : mbstring, intl
31
26
32
- - name : Install dependencies
33
- run : composer install --prefer-dist --no-progress
27
+ - name : Run PHP Syntax Check
28
+ run : php -l index.php # Replace `index.php` with your main PHP file or adjust to check all files
34
29
35
- # Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
36
- # Docs: https://getcomposer.org/doc/articles/scripts.md
30
+ # Optional: Add PHP tests if applicable
31
+ # - name: Run Tests
32
+ # run: phpunit tests # Adjust the path if you have a testing framework
37
33
38
- # - name: Run test suite
39
- # run: composer run-script test
You can’t perform that action at this time.
0 commit comments