Cater for deprecating SKIP_COMPOSER in D7 pipelines
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3420374. -->
Reported by: [jonathan1055](https://www.drupal.org/user/92645)
Related to !124
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>In <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/gitlab_templates/issues/3414391" title="Status: Closed (fixed)">#3414391: Define extra rule to jobs that have "needs: composer"</a></span> the variable <code>SKIP_COMPOSER</code> was deprecated and we now run the Composer job whenever it is required, and not when it is not required. This change of behavior and the new 'deprecation warning' .pre job also needs to be implemented in the main-d7 template, so that the behavoir is consistent when running pipelines on Drupal 7 </p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>Run a D7 pipeline with <code>SKIP_COMPOSER: 1</code> and the pipeline fails to be built, with the error</p>
<pre>Unable to create pipeline<br> 'phpcs' job needs 'composer' job, but 'composer' is not in any previous stage<br> 'phpunit' job needs 'composer' job, but 'composer' is not in any previous stage</pre><h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>The composer-base job has rule</p>
<pre>if: '$SKIP_COMPOSER == "1"'<br>when:never</pre><p>
Change the check to </p>
<pre>SKIP_PHPCS != 1 && SKIP_PHPUNIT != 1<br>when:never</pre>
issue