From a5d2ae0e007b357fc6fdda9095d44db72fd08021 Mon Sep 17 00:00:00 2001 From: Bishwajeet Parhi <62933155+2002Bishwajeet@users.noreply.github.com> Date: Mon, 17 Jul 2023 06:16:38 +0000 Subject: [PATCH 1/6] feat: add linter workflow --- .github/workflows/linter.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/linter.yml diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml new file mode 100644 index 0000000..c2f8cb6 --- /dev/null +++ b/.github/workflows/linter.yml @@ -0,0 +1,20 @@ +name: "Linter" + +on: [pull_request] +jobs: + lint: + name: Linter + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + with: + fetch-depth: 2 + + - run: git checkout HEAD^2 + + - name: Run Linter + run: | + docker run --rm -v $PWD:/app composer sh -c \ + "composer install --profile --ignore-platform-reqs && composer lint" \ No newline at end of file From ea9338cea83266d6ffb6d624d3fe4f2984575f93 Mon Sep 17 00:00:00 2001 From: Bishwajeet Parhi <62933155+2002Bishwajeet@users.noreply.github.com> Date: Mon, 17 Jul 2023 07:17:24 +0000 Subject: [PATCH 2/6] Empty-Commit From 7a54d4743d452b42384c797333656038a4e59227 Mon Sep 17 00:00:00 2001 From: Bishwajeet Parhi <62933155+2002Bishwajeet@users.noreply.github.com> Date: Mon, 17 Jul 2023 07:17:42 +0000 Subject: [PATCH 3/6] Empty-Commit From 4a7975f29813dfb56adb9ecba1a37427cf2e2cb6 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Mon, 17 Jul 2023 07:28:12 +0000 Subject: [PATCH 4/6] chore: trigger ci From 350a73ff1aedc64ce81b819c68315d0242b02d7c Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Mon, 17 Jul 2023 07:29:59 +0000 Subject: [PATCH 5/6] chore: update ci trigger --- .github/workflows/linter.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index c2f8cb6..609b65f 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -1,6 +1,7 @@ name: "Linter" -on: [pull_request] +on: [push, pull_request] + jobs: lint: name: Linter From 79f1a55865cae905e08e1d62fcb74fce84387232 Mon Sep 17 00:00:00 2001 From: Bishwajeet Parhi <62933155+2002Bishwajeet@users.noreply.github.com> Date: Mon, 17 Jul 2023 14:43:04 +0530 Subject: [PATCH 6/6] Update linter.yml --- .github/workflows/linter.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 609b65f..9e898b6 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -1,6 +1,6 @@ name: "Linter" -on: [push, pull_request] +on: [pull_request] jobs: lint: @@ -18,4 +18,4 @@ jobs: - name: Run Linter run: | docker run --rm -v $PWD:/app composer sh -c \ - "composer install --profile --ignore-platform-reqs && composer lint" \ No newline at end of file + "composer install --profile --ignore-platform-reqs && composer lint"