Skip to content

Commit

Permalink
Merge pull request #79 from wp-cli/add/gha-workflow-validation
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy authored Oct 27, 2023
2 parents 0ca6e1e + dd11ec2 commit fdabbae
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/reusable-code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,21 @@ jobs:
- name: Run PHPCS
if: steps.check_phpcs_binary_file.outputs.files_exists == 'true'
run: vendor/bin/phpcs -q --report=checkstyle | cs2pr

actions: #----------------------------------------------------------------------
name: Validate GitHub Actions workflows
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install action-validator with asdf
uses: asdf-vm/actions/install@v2
with:
tool_versions: |
action-validator latest
- name: Validate Actions
run: |
find .github/workflows -type f \( -iname \*.yaml -o -iname \*.yml \) \
| xargs -I {} action-validator --verbose {}

0 comments on commit fdabbae

Please sign in to comment.