|
63 | 63 | **/*.md |
64 | 64 | !CHANGELOG.md |
65 | 65 |
|
| 66 | + composer-linting: |
| 67 | + timeout-minutes: 4 |
| 68 | + runs-on: ${{ matrix.os }} |
| 69 | + concurrency: |
| 70 | + cancel-in-progress: true |
| 71 | + group: composer-linting-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} |
| 72 | + strategy: |
| 73 | + matrix: |
| 74 | + os: |
| 75 | + - ubuntu-latest |
| 76 | + php-version: |
| 77 | + - '8.1' |
| 78 | + dependencies: |
| 79 | + - locked |
| 80 | + permissions: |
| 81 | + contents: write |
| 82 | + steps: |
| 83 | + - name: 🛠️ Setup PHP |
| 84 | + uses: shivammathur/setup-php@2.30.4 |
| 85 | + with: |
| 86 | + php-version: ${{ matrix.php-version }} |
| 87 | + extensions: none, ctype, dom, json, mbstring, phar, simplexml, tokenizer, xml, xmlwriter, phar |
| 88 | + ini-values: error_reporting=E_ALL |
| 89 | + coverage: none |
| 90 | + |
| 91 | + - name: 📦 Check out the codebase |
| 92 | + uses: actions/checkout@v4.1.5 |
| 93 | + |
| 94 | + - name: 🛠️ Setup problem matchers |
| 95 | + run: | |
| 96 | + echo "::add-matcher::${{ runner.tool_cache }}/php.json" |
| 97 | +
|
| 98 | + - name: 🤖 Validate composer.json and composer.lock |
| 99 | + run: composer validate --ansi --strict |
| 100 | + |
| 101 | + - name: 🔍 Get composer cache directory |
| 102 | + uses: wayofdev/gh-actions/actions/composer/get-cache-directory@v3.1.0 |
| 103 | + |
| 104 | + - name: ♻️ Restore cached dependencies installed with composer |
| 105 | + uses: actions/cache@v4.0.2 |
| 106 | + with: |
| 107 | + path: ${{ env.COMPOSER_CACHE_DIR }} |
| 108 | + key: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }} |
| 109 | + restore-keys: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}- |
| 110 | + |
| 111 | + - name: 📥 Install "${{ matrix.dependencies }}" dependencies with composer |
| 112 | + uses: wayofdev/gh-actions/actions/composer/install@v3.1.0 |
| 113 | + with: |
| 114 | + dependencies: ${{ matrix.dependencies }} |
| 115 | + |
| 116 | + - name: 📥 Install dependencies with phive |
| 117 | + uses: wayofdev/gh-actions/actions/phive/install@v3.1.0 |
| 118 | + with: |
| 119 | + phive-home: '.phive' |
| 120 | + trust-gpg-keys: 0xC00543248C87FB13,0x033E5F8D801A2F8D |
| 121 | + |
| 122 | + - name: 🔍 Run ergebnis/composer-normalize |
| 123 | + run: .phive/composer-normalize --ansi --dry-run |
| 124 | + |
66 | 125 | coding-standards: |
67 | 126 | timeout-minutes: 4 |
68 | 127 | runs-on: ${{ matrix.os }} |
|
89 | 148 | uses: shivammathur/setup-php@2.30.4 |
90 | 149 | with: |
91 | 150 | php-version: ${{ matrix.php-version }} |
92 | | - extensions: none, ctype, dom, json, mbstring, phar, simplexml, tokenizer, xml, xmlwriter, sockets |
| 151 | + extensions: none, ctype, dom, json, mbstring, phar, simplexml, tokenizer, xml, xmlwriter |
93 | 152 | ini-values: error_reporting=E_ALL |
94 | 153 | coverage: none |
95 | 154 |
|
|
0 commit comments