mirror of
https://github.com/graycoreio/github-actions-magento2.git
synced 2026-06-08 19:46:41 +00:00
Fix phpcs Baseline Inputs (#95)
* Switch to PHP 8.2 * Fix phpcs baseline action inputs
This commit is contained in:
@@ -25,11 +25,11 @@ jobs:
|
||||
steps:
|
||||
- uses: mage-os/github-actions/coding-standard-baseline@main
|
||||
with:
|
||||
php_version: "8.1" # Optional, will be used for Php version
|
||||
php_version: "8.2"
|
||||
composer_version: "2"
|
||||
version: "31" # Optional, will use the latest if omitted.
|
||||
severity: "8" # Optional, will use phpcs default of 5 if not specified.
|
||||
warning_severity: "4" # Optional, will use warning severity value if not specified.
|
||||
error_severity: "7" # Optional, will use error severity value if not specified.
|
||||
baseline_version: "1.1.2" # Optional, will use for php codesniffer baseline version
|
||||
version: "*"
|
||||
severity: "5"
|
||||
warning_severity: "8"
|
||||
error_severity: "8"
|
||||
baseline_version: "*"
|
||||
```
|
||||
|
||||
@@ -6,44 +6,44 @@ inputs:
|
||||
php_version:
|
||||
type: string
|
||||
required: true
|
||||
default: "8.1"
|
||||
description: "PHP version used to do the coding standard check."
|
||||
default: "8.2"
|
||||
description: "PHP version used to do the coding standard check (default: 8.2)."
|
||||
|
||||
composer_version:
|
||||
type: string
|
||||
required: true
|
||||
default: "2"
|
||||
description: "The version of composer to use."
|
||||
description: "The version of composer to use (default: 2)."
|
||||
|
||||
version:
|
||||
type: string
|
||||
required: false
|
||||
default: "31"
|
||||
description: "The version of the coding standard to use. If not provided, will use the latest version."
|
||||
default: "*"
|
||||
description: "The version of the coding standard to use (default: latest)."
|
||||
|
||||
severity:
|
||||
type: string
|
||||
required: false
|
||||
default: "8"
|
||||
default: "5"
|
||||
description: "The minimum severity required to display an error or warning (default: 5)"
|
||||
|
||||
warning_severity:
|
||||
type: string
|
||||
required: false
|
||||
default: "8"
|
||||
description: "The minimum severity required to display a warning"
|
||||
description: "The minimum severity required to display a warning (default: 8)."
|
||||
|
||||
error_severity:
|
||||
type: string
|
||||
required: false
|
||||
default: "8"
|
||||
description: "The minimum severity required to display an error"
|
||||
description: "The minimum severity required to display an error (default: 8)."
|
||||
|
||||
baseline_version:
|
||||
type: string
|
||||
required: false
|
||||
default: "1.1.2"
|
||||
description: "version of phpcs baseline"
|
||||
default: "*"
|
||||
description: "The version of phpcs baseline to use (default: latest)."
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
|
||||
Reference in New Issue
Block a user