|
1 | | -name: Check |
2 | | - |
3 | 1 | on: |
4 | 2 | push: |
5 | 3 | branches: ['main', '*.*.x'] |
6 | 4 | pull_request: ~ |
7 | 5 |
|
8 | 6 | jobs: |
9 | | - composer: |
10 | | - runs-on: ubuntu-latest |
11 | | - steps: |
12 | | - - uses: actions/checkout@v4 |
13 | | - - uses: shivammathur/setup-php@v2 |
14 | | - with: |
15 | | - php-version: 8.1 |
16 | | - tools: composer:v2 |
17 | | - coverage: none |
18 | | - - uses: ramsey/composer-install@v3 |
19 | | - with: |
20 | | - composer-options: --optimize-autoloader |
21 | | - - run: composer validate |
22 | | - - run: composer normalize --dry-run |
23 | | - - run: composer check-require |
24 | | - - run: composer check-unused |
25 | | - |
26 | | - lint: |
27 | | - runs-on: ubuntu-latest |
28 | | - steps: |
29 | | - - uses: actions/checkout@v4 |
30 | | - - uses: shivammathur/setup-php@v2 |
31 | | - with: |
32 | | - php-version: 8.1 |
33 | | - tools: composer:v2 |
34 | | - coverage: none |
35 | | - - uses: ramsey/composer-install@v3 |
36 | | - with: |
37 | | - composer-options: --optimize-autoloader |
38 | | - - run: composer fixcs -- --dry-run --format=checkstyle |
39 | | - |
40 | | - psalm: |
41 | | - runs-on: ubuntu-latest |
42 | | - strategy: |
43 | | - matrix: |
44 | | - dependency-versions: [locked, lowest, highest] |
45 | | - steps: |
46 | | - - uses: actions/checkout@v4 |
47 | | - - uses: shivammathur/setup-php@v2 |
48 | | - with: |
49 | | - php-version: 8.1 |
50 | | - tools: composer:v2 |
51 | | - coverage: none |
52 | | - - uses: ramsey/composer-install@v3 |
53 | | - with: |
54 | | - composer-options: --optimize-autoloader |
55 | | - dependency-versions: ${{ matrix.dependency-versions }} |
56 | | - - run: composer psalm -- --stats --output-format=github ${{ matrix.dependency-versions == 'locked' && '--shepherd' || '' }} |
57 | | - |
58 | | - test: |
59 | | - runs-on: ubuntu-latest |
60 | | - strategy: |
61 | | - matrix: |
62 | | - php: [8.1, 8.2, 8.3] |
63 | | - dependency-versions: [locked, lowest, highest] |
64 | | - steps: |
65 | | - - uses: actions/checkout@v4 |
66 | | - - uses: shivammathur/setup-php@v2 |
67 | | - with: |
68 | | - php-version: ${{ matrix.php }} |
69 | | - ini-file: development |
70 | | - tools: composer:v2 |
71 | | - coverage: ${{ matrix.php == '8.1' && matrix.dependency-versions == 'locked' && 'pcov' || '' }} |
72 | | - - uses: ramsey/composer-install@v3 |
73 | | - with: |
74 | | - composer-options: --optimize-autoloader |
75 | | - dependency-versions: ${{ matrix.dependency-versions }} |
76 | | - - run: composer test -- --colors=always --coverage-clover coverage.xml |
77 | | - - if: ${{ matrix.php == '8.1' && matrix.dependency-versions == 'locked' }} |
78 | | - uses: codecov/codecov-action@v4 |
79 | | - env: |
80 | | - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
81 | | - |
82 | | - infection: |
83 | | - runs-on: ubuntu-latest |
84 | | - steps: |
85 | | - - uses: actions/checkout@v4 |
86 | | - - uses: shivammathur/setup-php@v2 |
87 | | - with: |
88 | | - php-version: 8.1 |
89 | | - ini-file: development |
90 | | - tools: composer:v2 |
91 | | - - uses: ramsey/composer-install@v3 |
92 | | - with: |
93 | | - composer-options: --optimize-autoloader |
94 | | - - run: composer infection |
95 | | - env: |
96 | | - STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }} |
| 7 | + check: |
| 8 | + uses: typhoon-php/.github/.github/workflows/check.yml@main |
| 9 | + secrets: inherit |
0 commit comments