diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index b262c39..454e83f 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -7,11 +7,23 @@ on: # Build any PRs and main branch changes - opened - synchronize paths-ignore: + # >>> CI Pre-check # In case of updates to those workflows, they must be pre-checked by `pre-check-CI-updates.yml` rather than this workflow ! # Any updates on those workflows are expected to be restricted to those workflows only ! (no update on code for instance) - '.github/workflows/pre-check-CI-updates.yml' - '.github/workflows/reusable-CI-workflow.yml' - '.github/workflows/reusable-coverage-upload-workflow.yml' + # <<< CI Pre-check + # >>> Irrelevant files (no impact whatsoever on this GHWorkflow) + - '.github/workflows/coverage-upload.yml' # Executed for on master (workflow_run), no impact here + - '.github/workflows/dependabot-PRs.yml' # Executed for dependabot PRs, no impact here + - '**/*.md' + - '**/LICENSE' + - '**/CODEOWNERS' + - '**/.remarkrc*' + - '**/.editorconfig' + - '**/.scrutinizer.yml' + # <<< Irrelevant files push: branches: [ master ] schedule: diff --git a/.github/workflows/auto-merge-dependabot.yml b/.github/workflows/dependabot-PRs.yml similarity index 95% rename from .github/workflows/auto-merge-dependabot.yml rename to .github/workflows/dependabot-PRs.yml index 220a1f3..d658fab 100644 --- a/.github/workflows/auto-merge-dependabot.yml +++ b/.github/workflows/dependabot-PRs.yml @@ -1,4 +1,4 @@ -name: PR auto-merge +name: Dependabot PRs on: pull_request permissions: @@ -7,6 +7,7 @@ permissions: jobs: dependabot: + name: Auto-merge & Labels if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'yoanm/php-jsonrpc-http-server-openapi-doc-sdk' runs-on: ubuntu-latest permissions: diff --git a/.github/workflows/reusable-CI-workflow.yml b/.github/workflows/reusable-CI-workflow.yml index 7d28a57..1807342 100644 --- a/.github/workflows/reusable-CI-workflow.yml +++ b/.github/workflows/reusable-CI-workflow.yml @@ -35,7 +35,7 @@ jobs: dependency: php tests: - name: ${{ matrix.job-name }} + name: PHP ${{ matrix.php-version }} - ${{ matrix.job-name }} needs: [fetch-supported-versions] runs-on: ubuntu-latest permissions: @@ -170,7 +170,7 @@ jobs: uses: actions/dependency-review-action@v4 nightly-tests: - name: Nightly + name: Nightly PHP ${{ needs.fetch-supported-versions.outputs.php-next }} needs: [ fetch-supported-versions, tests ] if: ${{ github.event_name == 'push' || ( github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'with-nightly-tests') ) }} runs-on: ubuntu-latest @@ -178,20 +178,19 @@ jobs: contents: read continue-on-error: true env: - PHP_VERSION: ${{ needs.fetch-supported-versions.outputs.php-next }} COMPOSER_IGNORE_PLATFORM_REQ: 'php+' steps: - name: Check out code uses: actions/checkout@v5 - - name: Setup PHP ${{ env.PHP_VERSION }} + - name: Setup PHP ${{ needs.fetch-supported-versions.outputs.php-next }} id: setup-php uses: shivammathur/setup-php@v2 env: update: true # whether to use latest available patch for the version or not fail-fast: true # step will fail if an extension or tool fails to set up with: - php-version: ${{ env.PHP_VERSION }} + php-version: ${{ needs.fetch-supported-versions.outputs.php-next }} tools: composer coverage: none