Merge pull request #261 from PrestaEdit/patch-1 #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Yaml lint/checker | |
on: | |
- push | |
- pull_request | |
jobs: | |
php-cs-fixer: | |
name: Yaml Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cache composer folder | |
uses: actions/cache@v2 | |
with: | |
path: ~/.composer/cache | |
key: php-composer-cache | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: "Setup Php 7.2" | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '7.2' | |
- name: "Install Composer" | |
run: composer install | |
- name: Run Yaml Linter | |
run : | | |
cd ${{ github.workspace }} | |
find -name '*.yml' -not -path './vendor/*' | xargs ./vendor/bin/yaml-lint |