Browse Source

Add theme validation workflow.

Jeff Ong 4 years ago
parent
commit
c729e26f01
1 changed files with 25 additions and 0 deletions
  1. 25 0
      .github/workflows/theme-review.yml

+ 25 - 0
.github/workflows/theme-review.yml

@@ -0,0 +1,25 @@
+
+name: Theme Review 
+
+on: repository_dispatch
+
+jobs:
+  run_tests:
+    runs-on: ubuntu-latest
+
+    steps:
+    - name: Download Theme
+      run: |
+        curl -L -o theme.zip "${{ github.event.client_payload.theme_zip }}"
+        unzip theme.zip
+    - name: Test My Theme
+      id: test
+      uses: StevenDufresne/wp-theme-validation-action-experiment@main
+      with:
+        root-folder: ${{ github.event.client_payload.theme_slug }}
+        accessible-ready: ${{ github.event.client_payload.accessible_ready }}
+    - uses: actions/upload-artifact@v2
+      if: ${{ always() }}
+      with:
+        name: Screenshots
+        path: ${{ steps.test.outputs.screenshots }}