File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -2,33 +2,35 @@ name: PHP Composer
22
33on :
44 push :
5- branches : [ master ]
5+ branches : [ "main" ]
66 pull_request :
7- branches : [ master ]
7+ branches : [ "main" ]
8+
9+ permissions :
10+ contents : read
811
912jobs :
1013 build :
1114
1215 runs-on : ubuntu-latest
1316
1417 steps :
15- - uses : actions/checkout@v2
18+ - uses : actions/checkout@v4
1619
1720 - name : Validate composer.json and composer.lock
18- run : composer validate
21+ run : composer validate --strict
1922
2023 - name : Cache Composer packages
2124 id : composer-cache
22- uses : actions/cache@v2
25+ uses : actions/cache@v3
2326 with :
2427 path : vendor
2528 key : ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
2629 restore-keys : |
2730 ${{ runner.os }}-php-
2831
2932 - name : Install dependencies
30- if : steps.composer-cache.outputs.cache-hit != 'true'
31- run : composer install --prefer-dist --no-progress --no-suggest
33+ run : composer install --prefer-dist --no-progress
3234
3335 # Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
3436 # Docs: https://getcomposer.org/doc/articles/scripts.md
You can’t perform that action at this time.
0 commit comments