Skip to content

Commit

Permalink
Update Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianoc72 committed Sep 16, 2024
1 parent ad5030d commit 106c9df
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 18 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/coverage_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
extensions: dom, json, libxml, xml, simplexml
php-version: 8.3
coverage: pcov
- name: Install composer dependencies
uses: ramsey/composer-install@v2
uses: ramsey/composer-install@v3
with:
composer-options: "--prefer-dist --optimize-autoloader"
- name: Test & publish code coverage
uses: paambaati/codeclimate-action@v3.2.0
uses: paambaati/codeclimate-action@v8.0.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ jobs:
fail-fast: false
matrix:
operating-system: [ubuntu-latest, windows-latest, macOS-latest]
php-versions: ['8.0', '8.1', '8.2']
symfony-version: ['5.4', '6.0']
php-versions: ['8.2', '8.3']
symfony-version: ['6.4', '7.1']
runs-on: ${{ matrix.operating-system }}
steps:
- name: Set autocrlf on windows
if: matrix.operating-system == 'windows-latest'
run: git config --global core.autocrlf false
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
Expand All @@ -28,13 +28,11 @@ jobs:
rm composer.json
mv resources/composer/composer-symfony${{ matrix.symfony-version }}.json composer.json
- name: Install composer dependencies
uses: ramsey/composer-install@v2
uses: ramsey/composer-install@v3
with:
composer-options: "--prefer-dist --optimize-autoloader"
- name: Check coding standard
run: composer cs:check
env:
PHP_CS_FIXER_IGNORE_ENV: true
- name: Static analysis tool
run: composer analytics
- name: Test suite
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"require": {
"php": ">=8.2",
"symfony/config": "^6.4|^7.0",
"symfony/config": "^6.4|^7.1",
"susina/param-resolver": "^0.5.0",
"susina/xml-to-array": "^1.0"
},
Expand Down
3 changes: 2 additions & 1 deletion docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ vendor/bin/pest

## Code Coverage

We provides two commands to generate a code coverage report in _html_ or _xml_ format:
We provides three commands to generate a code coverage report in _html_ or _xml_ format:

- `composer coverage` command to print a coverage report summary to the console
- `composer coverage:html` command generates a code coverage report in _html_ format, into the directory `coverage/`
- `composer coverage:clover` generates the report in _xml_ format, into `clover.xml` file.

Expand Down
5 changes: 3 additions & 2 deletions resources/composer/composer-symfony6.4.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"require": {
"php": ">=8.0",
"symfony/config": "^6.4",
"susina/param-resolver": "^0.5.0"
"susina/param-resolver": "^0.5.0",
"susina/xml-to-array": "^1.0"
},
"autoload": {
"psr-4": {
Expand All @@ -29,7 +30,7 @@
"ext-simplexml": "*",
"ext-libxml": "*",
"ext-dom": "*",
"pestphp/pest": "^1.22",
"pestphp/pest": "^2",
"mikey179/vfsstream": "^1.6",
"psalm/phar": "^5",
"susina/coding-standard": "^2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
],
"require": {
"php": ">=8.0",
"symfony/config": "^7.0",
"susina/param-resolver": "^0.5.0"
"symfony/config": "^7.1",
"susina/param-resolver": "^0.5.0",
"susina/xml-to-array": "^1.0"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 106c9df

Please sign in to comment.