File tree 1 file changed +35
-0
lines changed
1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : PHP Composer
2
+
3
+ on : [push, pull_request]
4
+
5
+ permissions :
6
+ contents : read
7
+
8
+ jobs :
9
+ build :
10
+
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - uses : actions/checkout@v4
15
+
16
+ - name : Validate composer.json and composer.lock
17
+ run : composer validate --strict
18
+
19
+ - name : Cache Composer packages
20
+ id : composer-cache
21
+ uses : actions/cache@v3
22
+ with :
23
+ path : vendor
24
+ key : ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
25
+ restore-keys : |
26
+ ${{ runner.os }}-php-
27
+
28
+ - name : Install dependencies
29
+ run : composer install --prefer-dist --no-progress
30
+
31
+ # Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
32
+ # Docs: https://getcomposer.org/doc/articles/scripts.md
33
+
34
+ # - name: Run test suite
35
+ # run: composer run-script test
You can’t perform that action at this time.
0 commit comments