Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: PR auto-merge
name: Dependabot PRs
on: pull_request

permissions:
Expand All @@ -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:
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/reusable-CI-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -170,28 +170,27 @@ 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
permissions:
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

Expand Down