-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathaction.yml
40 lines (38 loc) · 1.23 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: 'WordPress Theme Check Action'
description: 'Runs the Theme Check plugin against your theme'
author: 'The WordPress Contributors'
inputs:
root-folder:
description: 'The location of your theme'
default: .
accessible-ready:
description: 'Whether to run the full accessibility tests'
default: false
ui-debug:
description: 'More verbose logging; Creates a GIF'
default: false
outputs:
ui-check-output:
description: "Debug output from ui check"
value: ${{ steps.post.outputs.ui-check-output}}
logs:
description: "Path to the logs"
value: ${{ steps.post.outputs.logs}}
branding:
icon: 'clipboard'
color: 'blue'
runs:
using: 'composite'
steps:
- run: |
echo Copying theme folder ...
rsync -av --exclude=.git* ${{ inputs.root-folder }}/* ${{ github.action_path }}/test-theme
shell: bash
- run: |
cd ${{ github.action_path }} && npm install
cd ${{ github.action_path }} && node bin/github.js
cd ${{ github.action_path }} && chmod -R 767 ./
id: post
shell: bash
- run: cd ${{ github.action_path }} && npm run start -- --skipFolderCopy --githubRun --accessibleReady=${{ inputs.accessible-ready }} --debug --UIDebug
shell: bash