diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml index e0d4018d..a77dae02 100644 --- a/.github/workflows/develop.yml +++ b/.github/workflows/develop.yml @@ -27,10 +27,13 @@ jobs: php-version: ${{ env.PRIMARY_PHP_VERSION }} tools: composer + - name: Validate dependency file + run: composer validate --strict + - name: Install dependencies run: composer run install:ci - - name: Run PHP lint (phpcs, php-cs-fixer, rector) + - name: Run PHP lint (phpcs, php-cs-fixer, rector) run: composer run lint:all - name: symfony-insight @@ -46,7 +49,7 @@ jobs: strategy: matrix: - php-version: [8.1, 8.2, 8.3, 8.4] + php-version: [8.1, 8.2, 8.3, 8.4] steps: - name: Checkout repository @@ -64,12 +67,12 @@ jobs: - name: Run unit tests run: composer run test:unit - + doc: name: Generate Documentation runs-on: ubuntu-latest needs: [ tests ] - + steps: - name: Checkout repository uses: actions/checkout@v4 @@ -77,7 +80,7 @@ jobs: - uses: ./.github/actions/doc with: default-runtime-version: ${{ env.PRIMARY_PHP_VERSION }} - + coverage: name: Code Coverage Report runs-on: ubuntu-latest @@ -96,7 +99,7 @@ jobs: name: Build Project runs-on: ubuntu-latest needs: [ coverage, quality ] - # Deactivated as not necessary for PHP + # Deactivated as not necessary for PHP if: false steps: - name: Checkout repository diff --git a/composer.json b/composer.json index fa0167e8..ce259a24 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,5 @@ { - "_comment": "AUTO-GENERATED FILE - DO NOT EDIT", - "_generator": "Generated by OpenAPI Generator", - "_warning": "Manual changes will be overwritten, please update `templates/php/libraries/psr-18/composer.mustache` file and regenerate files", + "_comment": "AUTO-GENERATED FILE - DO NOT EDIT. Manual changes will be overwritten, please update `templates/php/libraries/psr-18/composer.mustache` file and regenerate files", "name": "upsun/upsun-sdk-php", "type": "library", "description": "The official Upsun SDK for PHP", diff --git a/templates/php/libraries/psr-18/composer.mustache b/templates/php/libraries/psr-18/composer.mustache index 80e071e2..5e01432e 100644 --- a/templates/php/libraries/psr-18/composer.mustache +++ b/templates/php/libraries/psr-18/composer.mustache @@ -1,7 +1,5 @@ { - "_comment": "AUTO-GENERATED FILE - DO NOT EDIT", - "_generator": "Generated by OpenAPI Generator", - "_warning": "Manual changes will be overwritten, please update `templates/php/libraries/psr-18/composer.mustache` file and regenerate files", + "_comment": "AUTO-GENERATED FILE - DO NOT EDIT. Manual changes will be overwritten, please update `templates/php/libraries/psr-18/composer.mustache` file and regenerate files", {{#composerPackageName}} "name": "{{{.}}}", {{/composerPackageName}}