Skip to content

Commit b00264c

Browse files
authored
Harmonize CI & files (#33)
1 parent d86a489 commit b00264c

File tree

8 files changed

+31
-28
lines changed

8 files changed

+31
-28
lines changed

.github/dependabot.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
version: 2
22
updates:
3-
#
4-
#
5-
# [GHAction]
6-
# Based on https://github.com/yoanm/shared-config/blob/master/GitHub/dependabot/github-action.yml file
7-
#
3+
#
4+
#
5+
# [GHAction]
6+
# Based on https://github.com/yoanm/shared-config/blob/master/GitHub/dependabot/github-action.yml file
7+
#
88
- package-ecosystem: github-actions
99
directory: /
1010
schedule:
@@ -14,22 +14,22 @@ updates:
1414
prefix: '[dependabot][ghaction] - ' # No need to specify prod/dev for GHAction as there is only "production" updates !
1515
include: scope
1616
groups:
17-
# Group all basic updates inside the a single PR
18-
# No need to split prod/dev as there is only prod updates
17+
# Group all basic updates inside the a single PR
18+
# No need to split prod/dev as there is only prod updates
1919
all-actions:
2020
applies-to: version-updates
2121
patterns: ['*']
22-
# Group all security updates inside the a single PR
23-
# No need to split prod/dev as there is only prod updates
24-
# +Most likely no need to split major and other updates either
22+
# Group all security updates inside the a single PR
23+
# No need to split prod/dev as there is only prod updates
24+
# +Most likely no need to split major and other updates either
2525
SECURITY-all:
2626
applies-to: security-updates
2727
patterns: ['*']
28-
#
29-
#
30-
# [Composer]
31-
# Based on https://github.com/yoanm/shared-config/blob/master/GitHub/dependabot/composer.yml file
32-
#
28+
#
29+
#
30+
# [Composer]
31+
# Based on https://github.com/yoanm/shared-config/blob/master/GitHub/dependabot/composer.yml file
32+
#
3333
- package-ecosystem: composer
3434
directory: /
3535
schedule: # Create PRs during week-ends, they will be ready on monday morning
@@ -41,9 +41,9 @@ updates:
4141
prefix-development: '[dependabot][dev][composer] - '
4242
include: scope
4343
groups:
44-
# Split basic updates by:
45-
# - prod vs dev
46-
# - major vs others (assuming packages properly follow semver !)
44+
# Split basic updates by:
45+
# - prod vs dev
46+
# - major vs others (assuming packages properly follow semver !)
4747
prod-majors:
4848
applies-to: version-updates
4949
dependency-type: production
@@ -62,9 +62,9 @@ updates:
6262
applies-to: version-updates
6363
dependency-type: development
6464
patterns: ['*']
65-
# Split security updates by:
66-
# - prod vs dev
67-
# - Major prod updates vs other prod updates
65+
# Split security updates by:
66+
# - prod vs dev
67+
# - Major prod updates vs other prod updates
6868
SECURITY-prod-major:
6969
applies-to: security-updates
7070
dependency-type: production

.github/workflows/coverage-upload.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ permissions:
99
checks: write # For the check run creation !
1010

1111
jobs:
12-
upload:
12+
coverage:
1313
name: Coverage
1414
permissions:
1515
contents: read

.github/workflows/pre-check-CI-updates.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
contents: read
3131
uses: ./.github/workflows/reusable-CI-workflow.yml
3232

33-
upload:
33+
coverage:
3434
name: Coverage
3535
needs: [tests]
3636
permissions:

.github/workflows/reusable-CI-workflow.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,9 @@ jobs:
222222
needs: [ fetch-supported-versions, tests ]
223223
if: ${{ github.event_name == 'push' || ( github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'with-nightly-tests') ) }}
224224
runs-on: ubuntu-latest
225-
continue-on-error: true
226225
permissions:
227226
contents: read
227+
continue-on-error: true
228228
env:
229229
COMPOSER_IGNORE_PLATFORM_REQ: 'php+'
230230
strategy:
@@ -246,7 +246,7 @@ jobs:
246246
symfony-version: ${{ needs.fetch-supported-versions.outputs.symfony-next }}
247247
# Fix - behat/gherkin => Avoid issue with behat <-> gherkin packages (See https://github.com/Behat/Gherkin/issues/317)
248248
# Fix - symfony/framework-bundle - Framework bundle <7.0 require php 8.1 minimum !
249-
pkg-extra-constraints: behat/gherkin:~4.12.0 ${{ ( needs.fetch-supported-versions.outputs.symfony-next == '7.0' && needs.fetch-supported-versions.outputs.php-max == '8.4' ) && 'symfony/framework-bundle:~7.0.0@dev' || '' }}
249+
pkg-extra-constraints: behat/gherkin:~4.12.0 ${{ ( needs.fetch-supported-versions.outputs.symfony-next == '7.0' && needs.fetch-supported-versions.outputs.php-max == '8.4' ) && 'symfony/framework-bundle:~7.0.0@dev' || '' }}
250250
- job-name: Symfony - With lowest supported PHP version
251251
# Fix - Sf 7.0 require php 8.1 minimum, most of deps require 8.2 !
252252
php-version: ${{ ( needs.fetch-supported-versions.outputs.symfony-next == '7.0' && needs.fetch-supported-versions.outputs.php-min == '8.0' ) && '8.2' || needs.fetch-supported-versions.outputs.php-min }}

.github/workflows/reusable-coverage-upload-workflow.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ jobs:
3232
outputs:
3333
commit-sha: ${{ steps.fetch-workflow-metadata.outputs.commit-sha }}
3434
run-id: ${{ steps.fetch-workflow-metadata.outputs.run-id }}
35+
branch: ${{ steps.fetch-workflow-metadata.outputs.branch }}
36+
pull-request: ${{ steps.fetch-workflow-metadata.outputs.pull-request }}
3537

3638
codacy-uploader:
3739
name: Codacy
@@ -64,6 +66,6 @@ jobs:
6466
run-id: ${{ needs.fetch-info.outputs.run-id }}
6567
force-git-commit: ${{ needs.fetch-info.outputs.commit-sha }}
6668
force-git-branch: ${{ needs.fetch-info.outputs.branch }}
67-
force-gh-pr: ${{ needs.fetch-info.outputs.pr-number }}
69+
force-gh-pr: ${{ needs.fetch-info.outputs.pull-request }}
6870
force-uploader-build: ${{ needs.fetch-info.outputs.run-id }}
6971
force-uploader-build-url: ${{ needs.fetch-info.outputs.run-url }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ build
33
#A library must not provide a composer.lock file
44
composer.lock
55

6+
# Demo app excluded dirs
67
features/demo_app/var/
78

89
#Phpunit

.scrutinizer.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ build:
4141
variables:
4242
CI: 'true'
4343
TEST_OUTPUT_STYLE: 'pretty'
44-
COMPOSER_OPTIONS: '--optimize-autoloader'
4544
COVERAGE_OUTPUT_STYLE: 'clover'
4645
COVERAGE_CLOVER_FILE_PATH: 'build/coverage/clover.xml'
4746
PHPCS_DISABLE_WARNING: 'true'

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
[![License](https://img.shields.io/github/license/yoanm/symfony-jsonrpc-http-server-openapi-doc.svg)](https://github.com/yoanm/symfony-jsonrpc-http-server-openapi-doc)
44
[![Code size](https://img.shields.io/github/languages/code-size/yoanm/symfony-jsonrpc-http-server-openapi-doc.svg)](https://github.com/yoanm/symfony-jsonrpc-http-server-openapi-doc)
5-
[![Dependabot Status](https://api.dependabot.com/badges/status?host=github\&repo=yoanm/symfony-jsonrpc-http-server-openapi-doc)](https://dependabot.com)
5+
![Dependabot Status](https://flat.badgen.net/github/dependabot/yoanm/symfony-jsonrpc-http-server-openapi-doc)
6+
![Last commit](https://badgen.net/github/last-commit/yoanm/symfony-jsonrpc-http-server-openapi-doc)
67

78
[![Scrutinizer Build Status](https://img.shields.io/scrutinizer/build/g/yoanm/symfony-jsonrpc-http-server-openapi-doc.svg?label=Scrutinizer\&logo=scrutinizer)](https://scrutinizer-ci.com/g/yoanm/symfony-jsonrpc-http-server-openapi-doc/build-status/master)
89
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/yoanm/symfony-jsonrpc-http-server-openapi-doc/master.svg?logo=scrutinizer)](https://scrutinizer-ci.com/g/yoanm/symfony-jsonrpc-http-server-openapi-doc/?branch=master)

0 commit comments

Comments
 (0)