Skip to content

Commit 8cc9d0d

Browse files
committed
WIP - Working on Github Actions
1 parent 648908a commit 8cc9d0d

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/dependency-checker/action.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,16 @@ inputs:
1313
default: "2"
1414
description: "The version of composer to use."
1515

16-
path:
16+
module_path:
1717
required: true
1818
default: 'app/code'
1919
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."
2020

21+
magento_root:
22+
required: true
23+
default: '.'
24+
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."
25+
2126
version:
2227
required: false
2328
description: "The version of the dependency checker to use. If not provided, will use the latest version."
@@ -43,4 +48,4 @@ runs:
4348

4449
- name: Run Dependency Checker
4550
shell: bash
46-
run: composer global exec dependencies . ${{ inputs.path }}
51+
run: composer global exec dependencies ${{ inputs.magento_root }} ${{ inputs.module_path }}

.github/workflows/setup-magento.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ jobs:
4545
- uses: ./.github/dependency-checker
4646
with:
4747
php_version: ${{ matrix.php }}
48-
path: './vendor/run-as-root/magento2-prometheus-exporter/'
48+
module_path: ${{ steps.setup-magento.outputs.path }}/vendor/run-as-root/magento2-prometheus-exporter/
49+
magento_root: ${{ steps.setup-magento.outputs.path }}
4950

5051
- run: php ./vendor/bin/phpunit ./vendor/run-as-root/magento2-prometheus-exporter/Test/Unit
5152
working-directory: ${{ steps.setup-magento.outputs.path }}

0 commit comments

Comments
 (0)