Fix phpcs Baseline Inputs (#95)

* Switch to PHP 8.2

* Fix phpcs baseline action inputs
This commit is contained in:
Simon Sprankel
2023-08-15 15:23:26 +02:00
committed by GitHub
parent dd14f7859c
commit fcaf3e4ed2
2 changed files with 16 additions and 16 deletions
+6 -6
View File
@@ -25,11 +25,11 @@ jobs:
steps: steps:
- uses: mage-os/github-actions/coding-standard-baseline@main - uses: mage-os/github-actions/coding-standard-baseline@main
with: with:
php_version: "8.1" # Optional, will be used for Php version php_version: "8.2"
composer_version: "2" composer_version: "2"
version: "31" # Optional, will use the latest if omitted. version: "*"
severity: "8" # Optional, will use phpcs default of 5 if not specified. severity: "5"
warning_severity: "4" # Optional, will use warning severity value if not specified. warning_severity: "8"
error_severity: "7" # Optional, will use error severity value if not specified. error_severity: "8"
baseline_version: "1.1.2" # Optional, will use for php codesniffer baseline version baseline_version: "*"
``` ```
+10 -10
View File
@@ -6,44 +6,44 @@ inputs:
php_version: php_version:
type: string type: string
required: true required: true
default: "8.1" default: "8.2"
description: "PHP version used to do the coding standard check." description: "PHP version used to do the coding standard check (default: 8.2)."
composer_version: composer_version:
type: string type: string
required: true required: true
default: "2" default: "2"
description: "The version of composer to use." description: "The version of composer to use (default: 2)."
version: version:
type: string type: string
required: false required: false
default: "31" default: "*"
description: "The version of the coding standard to use. If not provided, will use the latest version." description: "The version of the coding standard to use (default: latest)."
severity: severity:
type: string type: string
required: false required: false
default: "8" default: "5"
description: "The minimum severity required to display an error or warning (default: 5)" description: "The minimum severity required to display an error or warning (default: 5)"
warning_severity: warning_severity:
type: string type: string
required: false required: false
default: "8" default: "8"
description: "The minimum severity required to display a warning" description: "The minimum severity required to display a warning (default: 8)."
error_severity: error_severity:
type: string type: string
required: false required: false
default: "8" default: "8"
description: "The minimum severity required to display an error" description: "The minimum severity required to display an error (default: 8)."
baseline_version: baseline_version:
type: string type: string
required: false required: false
default: "1.1.2" default: "*"
description: "version of phpcs baseline" description: "The version of phpcs baseline to use (default: latest)."
runs: runs:
using: composite using: composite