From 2ffb9efb38a70b3413bbaf3edba8ecf7aa40bdc9 Mon Sep 17 00:00:00 2001 From: Jamie Blomerus Date: Mon, 23 Dec 2024 19:03:23 +0100 Subject: [PATCH 1/4] Added GitHub Actions workflow "WordPress Plugin Check" --- .github/workflows/plugin-check.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/plugin-check.yml diff --git a/.github/workflows/plugin-check.yml b/.github/workflows/plugin-check.yml new file mode 100644 index 0000000..e6660d2 --- /dev/null +++ b/.github/workflows/plugin-check.yml @@ -0,0 +1,18 @@ +name: 'WordPress Plugin Check' +on: + pull_request: + push: + branches: + - trunk + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Run plugin check + uses: wordpress/plugin-check-action@v1 + with: + exclude-directories: 'vendor' \ No newline at end of file From c0cfcd56fbbf0e8d6a6992881832f68db98637fb Mon Sep 17 00:00:00 2001 From: Jamie Blomerus Date: Mon, 23 Dec 2024 19:27:56 +0100 Subject: [PATCH 2/4] Attempt to resolve issue with workflow --- .github/workflows/plugin-check.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/plugin-check.yml b/.github/workflows/plugin-check.yml index e6660d2..e288003 100644 --- a/.github/workflows/plugin-check.yml +++ b/.github/workflows/plugin-check.yml @@ -12,7 +12,19 @@ jobs: - name: Checkout uses: actions/checkout@v3 + - name: Install Composer + run: | + curl -sS https://getcomposer.org/installer | php + mv composer.phar /usr/local/bin/composer + + - name: Build plugin + run: | + ./build.sh dev + mkdir tmp-build + unzip build-dev.zip -d tmp-build + - name: Run plugin check uses: wordpress/plugin-check-action@v1 with: + build-dir: './tmp-build' exclude-directories: 'vendor' \ No newline at end of file From d72dbb02dd6c6318cdb8d8042e4be4f2ce0b3973 Mon Sep 17 00:00:00 2001 From: Jamie Blomerus Date: Mon, 23 Dec 2024 19:33:44 +0100 Subject: [PATCH 3/4] Resolved false negatives in Plugin Check workflow --- .github/workflows/plugin-check.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/plugin-check.yml b/.github/workflows/plugin-check.yml index e288003..bbef997 100644 --- a/.github/workflows/plugin-check.yml +++ b/.github/workflows/plugin-check.yml @@ -20,11 +20,11 @@ jobs: - name: Build plugin run: | ./build.sh dev - mkdir tmp-build - unzip build-dev.zip -d tmp-build + mkdir mobile-bankid-integration + unzip build-dev.zip -d mobile-bankid-integration - name: Run plugin check uses: wordpress/plugin-check-action@v1 with: - build-dir: './tmp-build' + build-dir: './mobile-bankid-integration' exclude-directories: 'vendor' \ No newline at end of file From 4e0cbd216fd915c49d13f26e1cb118069664577c Mon Sep 17 00:00:00 2001 From: Jamie Blomerus Date: Mon, 23 Dec 2024 20:53:40 +0100 Subject: [PATCH 4/4] Exclude 'plugin_readme' checks --- .github/workflows/plugin-check.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/plugin-check.yml b/.github/workflows/plugin-check.yml index bbef997..f32107f 100644 --- a/.github/workflows/plugin-check.yml +++ b/.github/workflows/plugin-check.yml @@ -27,4 +27,5 @@ jobs: uses: wordpress/plugin-check-action@v1 with: build-dir: './mobile-bankid-integration' - exclude-directories: 'vendor' \ No newline at end of file + exclude-directories: 'vendor' + exclude-checks: 'plugin_readme' \ No newline at end of file