From 07d11692f35d86b4fb7187220d2fdc5d8f94a457 Mon Sep 17 00:00:00 2001 From: sangeetha-nayak Date: Fri, 23 Feb 2024 16:31:20 +0530 Subject: [PATCH 1/5] Fix update lock file step --- .github/workflows/tests.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9c56706f..f9bad0ab 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -77,9 +77,6 @@ jobs: run: | node ./vendor/newfold-labs/wp-module-ecommerce/scripts/update-plugin-composer.mjs ${PWD}/composer.json ${PWD}/vendor - - name: Update lockfile - run: composer update - - name: Validate composer.json and composer.lock run: composer validate From 2cf79063160a1eec9ed3fe1a731d45debe4b91a9 Mon Sep 17 00:00:00 2001 From: sangeetha-nayak Date: Fri, 23 Feb 2024 16:39:43 +0530 Subject: [PATCH 2/5] Remove validate for plugin --- .github/workflows/tests.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f9bad0ab..f041faec 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -77,9 +77,6 @@ jobs: run: | node ./vendor/newfold-labs/wp-module-ecommerce/scripts/update-plugin-composer.mjs ${PWD}/composer.json ${PWD}/vendor - - name: Validate composer.json and composer.lock - run: composer validate - - name: Install PHP Dependencies run: composer install --no-progress --no-dev --optimize-autoloader --prefer-dist From a64921d8cca89bf4f13cb686dac7c92a16206ad0 Mon Sep 17 00:00:00 2001 From: sangeetha-nayak Date: Fri, 23 Feb 2024 18:24:47 +0530 Subject: [PATCH 3/5] added -W option --- .github/workflows/brand-plugin-test.yml | 2 +- .github/workflows/tests.yml | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/brand-plugin-test.yml b/.github/workflows/brand-plugin-test.yml index fcb489da..61d4bbd7 100644 --- a/.github/workflows/brand-plugin-test.yml +++ b/.github/workflows/brand-plugin-test.yml @@ -4,7 +4,7 @@ on: types: [ opened, reopened, ready_for_review, synchronize ] branches: - main - - trunk + workflow_dispatch: concurrency: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f041faec..c48113df 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -76,7 +76,10 @@ jobs: - name: Modify composer.json run: | node ./vendor/newfold-labs/wp-module-ecommerce/scripts/update-plugin-composer.mjs ${PWD}/composer.json ${PWD}/vendor - + + - name: Update lockfile + run: composer update -W + - name: Install PHP Dependencies run: composer install --no-progress --no-dev --optimize-autoloader --prefer-dist From 467945b433bfe467e4d10ddb020a80250dcd40d6 Mon Sep 17 00:00:00 2001 From: sangeetha-nayak Date: Fri, 23 Feb 2024 18:31:23 +0530 Subject: [PATCH 4/5] Reverted back changes --- .github/workflows/brand-plugin-test.yml | 1 + .github/workflows/tests.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/brand-plugin-test.yml b/.github/workflows/brand-plugin-test.yml index 61d4bbd7..a3e5a518 100644 --- a/.github/workflows/brand-plugin-test.yml +++ b/.github/workflows/brand-plugin-test.yml @@ -4,6 +4,7 @@ on: types: [ opened, reopened, ready_for_review, synchronize ] branches: - main + - trunk workflow_dispatch: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c48113df..4e28a707 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -78,7 +78,7 @@ jobs: node ./vendor/newfold-labs/wp-module-ecommerce/scripts/update-plugin-composer.mjs ${PWD}/composer.json ${PWD}/vendor - name: Update lockfile - run: composer update -W + run: composer update - name: Install PHP Dependencies run: composer install --no-progress --no-dev --optimize-autoloader --prefer-dist From d3653bc4c497492bf865de48b9a1d71cb150ea3e Mon Sep 17 00:00:00 2001 From: sangeetha-nayak Date: Fri, 23 Feb 2024 18:32:51 +0530 Subject: [PATCH 5/5] revert back composer change --- .github/workflows/tests.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4e28a707..15cfc9d0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -77,9 +77,6 @@ jobs: run: | node ./vendor/newfold-labs/wp-module-ecommerce/scripts/update-plugin-composer.mjs ${PWD}/composer.json ${PWD}/vendor - - name: Update lockfile - run: composer update - - name: Install PHP Dependencies run: composer install --no-progress --no-dev --optimize-autoloader --prefer-dist