|
9 | 9 | runs-on: ubuntu-latest |
10 | 10 |
|
11 | 11 | steps: |
12 | | - - uses: actions/checkout@v1 |
13 | | - |
14 | | - ############################################################################ |
15 | | - - name: Set up PHP |
16 | | - uses: shivammathur/setup-php@v2 |
17 | | - with: |
18 | | - php-version: '7.2' |
19 | | - tools: composer, prestissimo, pecl |
20 | | - coverage: none |
21 | | - |
22 | | - #https://github.com/actions/cache/blob/master/examples.md#php---composer |
23 | | - - name: Cache composer packages |
24 | | - id: composer-cache |
25 | | - run: | |
26 | | - composer config cache-files-dir |
27 | | - echo "::set-output name=dir::$(composer config cache-files-dir)" |
28 | | - - uses: actions/cache@v4 |
29 | | - with: |
30 | | - path: ${{ steps.composer-cache.outputs.dir }} |
31 | | - key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} |
32 | | - restore-keys: | |
33 | | - ${{ runner.os }}-composer- |
34 | | -
|
35 | | - - name: Update project dependencies |
36 | | - run: | |
37 | | - composer install --prefer-dist --no-progress --no-suggest |
38 | | - composer dump-autoload --optimize |
39 | | - rm -rf libs/bin |
40 | | - ############################################################################ |
41 | | - |
| 12 | + - uses: actions/checkout@v1 |
| 13 | + |
| 14 | + ############################################################################ |
| 15 | + - name: Set up PHP |
| 16 | + uses: shivammathur/setup-php@v2 |
| 17 | + with: |
| 18 | + php-version: '7.2' |
| 19 | + tools: composer, prestissimo, pecl |
| 20 | + coverage: none |
| 21 | + |
| 22 | + #https://github.com/actions/cache/blob/master/examples.md#php---composer |
| 23 | + - name: Cache composer packages |
| 24 | + id: composer-cache |
| 25 | + run: | |
| 26 | + composer config cache-files-dir |
| 27 | + echo "::set-output name=dir::$(composer config cache-files-dir)" |
| 28 | + - uses: actions/cache@v4 |
| 29 | + with: |
| 30 | + path: ${{ steps.composer-cache.outputs.dir }} |
| 31 | + key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} |
| 32 | + restore-keys: | |
| 33 | + ${{ runner.os }}-composer- |
| 34 | +
|
| 35 | + - name: Update project dependencies |
| 36 | + run: | |
| 37 | + composer install --prefer-dist --no-progress --no-suggest |
| 38 | + composer dump-autoload --optimize |
| 39 | + rm -rf libs/bin |
| 40 | + ############################################################################ |
| 41 | + |
| 42 | + - name: Run PHPStorm |
| 43 | + uses: supercid/action-phpstorm@master |
| 44 | + with: |
| 45 | + target: . |
| 46 | + profile: ./.idea/inspectionProfiles/CI.xml |
| 47 | + output: ./output |
| 48 | + verbosity: v2 |
| 49 | + scope: Inspection |
| 50 | + |
| 51 | + - name: Archive inspection results |
| 52 | + if: always() |
| 53 | + uses: actions/upload-artifact@v4 |
| 54 | + with: |
| 55 | + name: inspection-results |
| 56 | + path: output |
0 commit comments