File tree Expand file tree Collapse file tree 2 files changed +15
-36
lines changed Expand file tree Collapse file tree 2 files changed +15
-36
lines changed Original file line number Diff line number Diff line change 1+ name : ' Cache Composer packages'
2+ runs :
3+ using : ' composite'
4+ steps :
5+ - id : composer-cache
6+ uses : actions/cache@v3
7+ with :
8+ path : vendor
9+ key : ${{ inputs.runner-os }}-php-${{ hashFiles('**/composer.lock') }}
10+ restore-keys : |
11+ ${{ inputs.runner-os }}-php-
Original file line number Diff line number Diff line change 2828
2929 steps :
3030 - uses : actions/checkout@v3
31-
32- - name : Cache Composer packages
33- id : composer-cache
34- uses : actions/cache@v3
35- with :
36- path : vendor
37- key : ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
38- restore-keys : |
39- ${{ runner.os }}-php-
31+ - uses : ./.github/actions/composer-cache
4032
4133 - name : Install dependencies
4234 run : composer install --prefer-dist --no-progress
4840
4941 steps :
5042 - uses : actions/checkout@v3
51-
52- - name : Cache Composer packages
53- id : composer-cache
54- uses : actions/cache@v3
55- with :
56- path : vendor
57- key : ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
58- restore-keys : |
59- ${{ runner.os }}-php-
43+ - uses : ./.github/actions/composer-cache
6044
6145 - name : PHP 7.4 compatibility
6246 run : composer sniffer:php7.4
7458
7559 steps :
7660 - uses : actions/checkout@v3
77-
78- - name : Cache Composer packages
79- id : composer-cache
80- uses : actions/cache@v3
81- with :
82- path : vendor
83- key : ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
84- restore-keys : |
85- ${{ runner.os }}-php-
61+ - uses : ./.github/actions/composer-cache
8662
8763 - name : phpstan
8864 run : composer phpstan
9470
9571 steps :
9672 - uses : actions/checkout@v3
97-
98- - name : Cache Composer packages
99- id : composer-cache
100- uses : actions/cache@v3
101- with :
102- path : vendor
103- key : ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
104- restore-keys : |
105- ${{ runner.os }}-php-
73+ - uses : ./.github/actions/composer-cache
10674
10775 - name : Setup PHP with Xdebug
10876 uses : shivammathur/setup-php@v2
You can’t perform that action at this time.
0 commit comments