mirror of
https://github.com/graycoreio/github-actions-magento2.git
synced 2026-06-13 13:14:53 +00:00
Apply changes as per Simon comments
This commit is contained in:
@@ -27,7 +27,6 @@ jobs:
|
|||||||
php_version: 8.1 # Optional, will be used for Php version
|
php_version: 8.1 # Optional, will be used for Php version
|
||||||
composer_version: 2
|
composer_version: 2
|
||||||
version: 31 # Optional, will use the latest if omitted.
|
version: 31 # Optional, will use the latest if omitted.
|
||||||
path: app/code # Optional, will be used when event is not a pull request.
|
|
||||||
severity: 8 # Optional, will use phpcs default of 5 if not specified.
|
severity: 8 # Optional, will use phpcs default of 5 if not specified.
|
||||||
warning_severity: 4 # Optional, will use warning severity value 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.
|
error_severity: 7 # Optional, will use error severity value if not specified.
|
||||||
|
|||||||
@@ -15,12 +15,6 @@ inputs:
|
|||||||
default: "2"
|
default: "2"
|
||||||
description: "The version of composer to use."
|
description: "The version of composer to use."
|
||||||
|
|
||||||
path:
|
|
||||||
type: string
|
|
||||||
required: true
|
|
||||||
default: 'app/code'
|
|
||||||
description: "The directory (relative to the project root) in which the coding standard will be checked. Used when the event is not a pull request."
|
|
||||||
|
|
||||||
version:
|
version:
|
||||||
type: string
|
type: string
|
||||||
required: false
|
required: false
|
||||||
@@ -89,7 +83,7 @@ runs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
sed "s/ /\n/g" ${{ github.workspace }}/modified_files.txt > ${{ github.workspace }}/newline_file.txt
|
sed "s/ /\n/g" ${{ github.workspace }}/modified_files.txt > ${{ github.workspace }}/newline_file.txt
|
||||||
grep -iE "\.php|\.phtml" ${{ github.workspace }}/newline_file.txt > ${{ github.workspace }}/phpcs_files.txt
|
grep -iE "\.php|\.phtml|\.html|\.xml" ${{ github.workspace }}/newline_file.txt > ${{ github.workspace }}/phpcs_files.txt
|
||||||
|
|
||||||
- name: Checkout - Before Merge
|
- name: Checkout - Before Merge
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
Reference in New Issue
Block a user