|
36 | 36 | - '8.3' |
37 | 37 | dependencies: |
38 | 38 | - locked |
39 | | - |
40 | 39 | steps: |
41 | 40 | - name: 📦 Check out the codebase |
42 | 41 | |
|
84 | 83 | - name: 🔬 Run maglnet/composer-require-checker |
85 | 84 | working-directory: app |
86 | 85 | run: .phive/composer-require-checker check --ansi --config-file="$(pwd)/composer-require-checker.json" --verbose |
| 86 | + |
| 87 | + deptrac: |
| 88 | + timeout-minutes: 4 |
| 89 | + runs-on: ${{ matrix.os }} |
| 90 | + concurrency: |
| 91 | + cancel-in-progress: true |
| 92 | + group: deptrac-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} |
| 93 | + strategy: |
| 94 | + fail-fast: true |
| 95 | + matrix: |
| 96 | + os: |
| 97 | + - ubuntu-latest |
| 98 | + php-version: |
| 99 | + - '8.3' |
| 100 | + dependencies: |
| 101 | + - locked |
| 102 | + steps: |
| 103 | + - name: 📦 Check out the codebase |
| 104 | + |
| 105 | + |
| 106 | + - name: 🛠️ Setup PHP |
| 107 | + uses: shivammathur/[email protected] |
| 108 | + with: |
| 109 | + php-version: ${{ matrix.php-version }} |
| 110 | + extensions: none, ctype, dom, json, mbstring, simplexml, tokenizer, xml, xmlwriter, pdo, curl, fileinfo, pdo_mysql |
| 111 | + ini-values: error_reporting=E_ALL |
| 112 | + coverage: none |
| 113 | + tools: phive |
| 114 | + |
| 115 | + - name: 🛠️ Setup problem matchers |
| 116 | + run: echo "::add-matcher::${{ runner.tool_cache }}/php.json" |
| 117 | + |
| 118 | + - name: 🤖 Validate composer.json and composer.lock |
| 119 | + run: make validate-composer |
| 120 | + |
| 121 | + - name: 🔍 Get composer cache directory |
| 122 | + uses: wayofdev/gh-actions/actions/composer/[email protected] |
| 123 | + with: |
| 124 | + working-directory: app |
| 125 | + |
| 126 | + - name: ♻️ Restore cached dependencies installed with composer |
| 127 | + |
| 128 | + with: |
| 129 | + path: ${{ env.COMPOSER_CACHE_DIR }} |
| 130 | + key: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }} |
| 131 | + restore-keys: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}- |
| 132 | + |
| 133 | + - name: 📥 Install "${{ matrix.dependencies }}" dependencies with composer |
| 134 | + uses: wayofdev/gh-actions/actions/composer/[email protected] |
| 135 | + with: |
| 136 | + working-directory: app |
| 137 | + dependencies: ${{ matrix.dependencies }} |
| 138 | + |
| 139 | + - name: 📥 Install dependencies with phive |
| 140 | + working-directory: app |
| 141 | + env: |
| 142 | + PHIVE_HOME: .phive |
| 143 | + run: phive install --trust-gpg-keys 0xC00543248C87FB13,0x033E5F8D801A2F8D,0x47436587D82C4A39 |
| 144 | + shell: bash |
| 145 | + |
| 146 | + - name: 🔬 Run deptrac |
| 147 | + working-directory: app |
| 148 | + run: make lint-deptrac-ci |
0 commit comments