From 9352044ec7b225dbd5a8f8c44b531286521075c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torben=20Ho=CC=88hn?= Date: Tue, 24 May 2022 14:54:05 +0200 Subject: [PATCH] add github actions for coding standard --- .github/workflows/coding-standard.yml | 14 ++++++++++++++ .github/workflows/copy-paste-detector.yml | 14 ++++++++++++++ .github/workflows/mess-detector.yml | 14 ++++++++++++++ .github/workflows/phpstan.yml | 16 ++++++++++++++++ 4 files changed, 58 insertions(+) create mode 100644 .github/workflows/coding-standard.yml create mode 100644 .github/workflows/copy-paste-detector.yml create mode 100644 .github/workflows/mess-detector.yml create mode 100644 .github/workflows/phpstan.yml diff --git a/.github/workflows/coding-standard.yml b/.github/workflows/coding-standard.yml new file mode 100644 index 0000000..dc1815a --- /dev/null +++ b/.github/workflows/coding-standard.yml @@ -0,0 +1,14 @@ +name: ExtDN M2 Coding Standard +on: + push: + branches: + - main + pull_request: + +jobs: + static: + name: M2 Coding Standard + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: extdn/github-actions-m2/magento-coding-standard@master diff --git a/.github/workflows/copy-paste-detector.yml b/.github/workflows/copy-paste-detector.yml new file mode 100644 index 0000000..a5f3dee --- /dev/null +++ b/.github/workflows/copy-paste-detector.yml @@ -0,0 +1,14 @@ +name: ExtDN M2 Copy Paste Detector +on: + push: + branches: + - main + pull_request: + +jobs: + phpmd: + name: M2 Copy Paste Detector + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: extdn/github-actions-m2/magento-copy-paste-detector@master diff --git a/.github/workflows/mess-detector.yml b/.github/workflows/mess-detector.yml new file mode 100644 index 0000000..ed498b4 --- /dev/null +++ b/.github/workflows/mess-detector.yml @@ -0,0 +1,14 @@ +name: ExtDN M2 Mess Detector +on: + push: + branches: + - main + pull_request: + +jobs: + phpmd: + name: M2 Mess Detector + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: extdn/github-actions-m2/magento-mess-detector@master diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml new file mode 100644 index 0000000..f704ae0 --- /dev/null +++ b/.github/workflows/phpstan.yml @@ -0,0 +1,16 @@ +name: ExtDN M2 PHPStan +on: + push: + branches: + - main + pull_request: + +jobs: + phpstan: + name: M2 PHPStan + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: extdn/github-actions-m2/magento-phpstan@master + with: + composer_name: foo/magento2-foobar