|
10 | 10 | - README.md |
11 | 11 |
|
12 | 12 | jobs: |
13 | | - php: |
14 | | - name: PHP ${{ matrix.php }} Symfony ${{ matrix.symfony }} |
15 | | - runs-on: ubuntu-18.04 |
16 | | - |
17 | | - strategy: |
18 | | - fail-fast: false |
19 | | - matrix: |
20 | | - php: [7.3, 7.4] |
21 | | - symfony: [4.4.*, 5.2.*] |
22 | | - |
23 | | - steps: |
24 | | - - uses: actions/checkout@v2 |
25 | | - |
26 | | - - name: Setup PHP |
27 | | - uses: shivammathur/setup-php@v2 |
28 | | - with: |
29 | | - php-version: "${{ matrix.php }}" |
30 | | - tools: symfony |
31 | | - coverage: none |
32 | | - |
33 | | - - name: Composer - Get Cache Directory |
34 | | - id: composer-cache |
35 | | - run: echo "::set-output name=dir::$(composer config cache-files-dir)" |
36 | | - |
37 | | - - name: Composer - Set cache |
38 | | - uses: actions/cache@v2 |
39 | | - with: |
40 | | - path: ${{ steps.composer-cache.outputs.dir }} |
41 | | - key: php-${{ matrix.php }}-symfony-${{ matrix.symfony }}-composer-${{ hashFiles('**/composer.json') }} |
42 | | - restore-keys: | |
43 | | - php-${{ matrix.php }}-symfony-${{ matrix.symfony }}-composer- |
44 | | -
|
45 | | - - name: Composer - Validate composer.json and composer.lock |
46 | | - run: composer validate |
47 | | - |
48 | | - - name: Composer - Github Auth |
49 | | - run: composer config -g github-oauth.github.com ${{ github.token }} |
50 | | - |
51 | | - - name: Composer - Restrict Symfony version |
52 | | - run: composer config extra.symfony.require "${{ matrix.symfony }}" |
53 | | - |
54 | | - - name: Composer - Update dependencies |
55 | | - run: composer update --no-progress |
56 | | - id: end-of-setup |
57 | | - |
58 | | -# Disable in cause of error occurs symplify/symplify#2873 |
59 | | -# - name: ECS - Run |
60 | | -# run: if [ -f rulesets/ecs.php ]; then vendor/bin/ecs check src/ tests/Behat/ --no-progress-bar -c rulesets/ecs.php ; else echo Ecs rulesets file does not exist, skipping step ; fi |
61 | | -# if: always() && steps.end-of-setup.outcome == 'success' |
62 | | - |
63 | | - - name: PHPStan - Run |
64 | | - run: if [ -f rulesets/phpstan.neon ]; then vendor/bin/phpstan analyse -c rulesets/phpstan.neon src/ ; else echo PHPStan rulesets file does not exist, skipping step ; fi |
65 | | - if: always() && steps.end-of-setup.outcome == 'success' |
66 | | - |
67 | | - - name: PHPSpec - Run |
68 | | - run: if [ -f phpspec.yml.dist ]; then vendor/bin/phpspec run ; else echo PHPSpec config file does not exist, skipping step ; fi |
69 | | - if: always() && steps.end-of-setup.outcome == 'success' |
70 | | - |
71 | | - - name: Checks security issues - Run |
72 | | - run: symfony security:check |
73 | | - if: always() && steps.end-of-setup.outcome == 'success' |
74 | | - |
75 | | - - name: PHPunit - Run |
76 | | - run: vendor/bin/phpunit |
77 | | - if: always() && steps.end-of-setup.outcome == 'success' |
78 | | - |
79 | 13 | sylius: |
80 | 14 | name: PHPUnit-Behat (PHP ${{ matrix.php }} Sylius ${{ matrix.sylius }}) |
81 | 15 | runs-on: ubuntu-18.04 |
|
0 commit comments