File tree 1 file changed +49
-0
lines changed
1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : PHP Composer
2
+
3
+ on :
4
+ push :
5
+ branches : [ master ]
6
+ pull_request :
7
+ branches : [ master ]
8
+
9
+ jobs :
10
+ build :
11
+
12
+ runs-on : ubuntu-latest
13
+
14
+ steps :
15
+ - name : Checkout
16
+ uses : actions/checkout@v2
17
+
18
+ - name : Setup PHP
19
+ uses : shivammathur/setup-php@v2
20
+ with :
21
+ php-version : ' 7.3'
22
+ extensions : mbstring, intl
23
+ ini-values : post_max_size=256M, short_open_tag=On
24
+ coverage : xdebug
25
+ tools : php-cs-fixer, phpunit
26
+
27
+ - name : Validate composer.json and composer.lock
28
+ run : composer validate
29
+
30
+ - name : Cache Composer packages
31
+ id : composer-cache
32
+ uses : actions/cache@v2
33
+ with :
34
+ path : vendor
35
+ key : ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
36
+ restore-keys : |
37
+ ${{ runner.os }}-php-
38
+
39
+ - name : Install dependencies
40
+ if : steps.composer-cache.outputs.cache-hit != 'true'
41
+ run : composer install --prefer-dist --no-progress --no-suggest
42
+
43
+ - name : Run test suite
44
+ run : composer run-script test
45
+ env :
46
+ ACCESS_TOKEN : ${{ secrets.ACCESS_TOKEN }}
47
+ USER_EMAIL : ${{ secrets.USER_EMAIL }}
48
+ CLIENT_ID : ${{ secrets.CLIENT_ID }}
49
+ CLIENT_SECRET : ${{ secrets.CLIENT_SECRET }}
You can’t perform that action at this time.
0 commit comments