|
1 | 1 | name: CI |
2 | 2 | on: [push] |
3 | 3 | jobs: |
4 | | - phpcs: |
5 | | - runs-on: ubuntu-latest |
6 | | - steps: |
7 | | - - uses: actions/checkout@v2 |
8 | | - - run: bin/ci/phpcs |
9 | | - |
10 | | - phpstan: |
11 | | - runs-on: ubuntu-latest |
12 | | - strategy: |
13 | | - matrix: |
14 | | - php: [--php=8.1, --php=8.2, --php=8.3] |
15 | | - steps: |
16 | | - - uses: actions/checkout@v2 |
17 | | - - uses: ./.github/actions/ci-env |
18 | | - - run: bin/ci/phpstan ${{ matrix.php }} |
19 | | - |
20 | | - phpdd: |
21 | | - runs-on: ubuntu-latest |
22 | | - steps: |
23 | | - - uses: actions/checkout@v2 |
24 | | - - uses: ./.github/actions/ci-env |
25 | | - - run: bin/ci/phpdd |
26 | | - |
27 | | - composer-require-checker: |
28 | | - runs-on: ubuntu-latest |
29 | | - steps: |
30 | | - - uses: actions/checkout@v2 |
31 | | - - uses: ./.github/actions/ci-env |
32 | | - - run: bin/ci/composer-require-checker |
33 | | - |
34 | | - composer-validate: |
35 | | - runs-on: ubuntu-latest |
36 | | - steps: |
37 | | - - uses: actions/checkout@v2 |
38 | | - - run: bin/ci/composer-validate |
39 | | - |
40 | | - shellcheck: |
41 | | - runs-on: ubuntu-latest |
42 | | - steps: |
43 | | - - uses: actions/checkout@v2 |
44 | | - - run: bin/ci/shellcheck |
45 | | - |
46 | | - unused-scanner: |
47 | | - runs-on: ubuntu-latest |
48 | | - steps: |
49 | | - - uses: actions/checkout@v2 |
50 | | - - run: bin/ci/unused-scanner |
51 | | - |
52 | | - phpunit-symfony-6: |
53 | | - runs-on: ubuntu-latest |
54 | | - strategy: |
55 | | - matrix: |
56 | | - php: [--php=8.1, --php=8.2, --php=8.3] |
57 | | - symfony: [--symfony=6.1, --symfony=6.2, --symfony=6.3, --symfony=6.4] |
58 | | - steps: |
59 | | - - uses: actions/checkout@v2 |
60 | | - - uses: ./.github/actions/ci-env |
61 | | - - run: bin/ci/phpunit ${{ matrix.php }} ${{ matrix.symfony }} |
62 | | - |
63 | | - phpunit-symfony-7: |
64 | | - runs-on: ubuntu-latest |
65 | | - strategy: |
66 | | - matrix: |
67 | | - php: [--php=8.2, --php=8.3] |
68 | | - symfony: [--symfony=7.0, --symfony=7.1] |
69 | | - steps: |
70 | | - - uses: actions/checkout@v2 |
71 | | - - uses: ./.github/actions/ci-env |
72 | | - - run: bin/ci/phpunit ${{ matrix.php }} ${{ matrix.symfony }} |
| 4 | + validate: |
| 5 | + runs-on: ubuntu-latest |
| 6 | + steps: |
| 7 | + - |
| 8 | + name: Checkout repository |
| 9 | + uses: actions/checkout@v4 |
| 10 | + - |
| 11 | + name: Composer cache |
| 12 | + uses: actions/cache@v3 |
| 13 | + with: |
| 14 | + path: vendor |
| 15 | + key: composer-${{ hashFiles('composer.json') }} |
| 16 | + restore-keys: composer-${{ hashFiles('composer.json') }} |
| 17 | + - run: bin/ci/env |
| 18 | + - run: bin/ci/validate --theme=summary |
0 commit comments