Skip to content

docs: use tabs for commands #93

docs: use tabs for commands

docs: use tabs for commands #93

Workflow file for this run

name: YAML
on:
push:
paths:
- '**.yaml'
- '**.yml'
pull_request:
paths:
- '**.yaml'
- '**.yml'
jobs:
yaml-validation:
name: YAML validation
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Setup PHP version
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
extensions: mbstring
- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache composer dependencies
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install composer dependencies
run: |
composer update --no-progress --prefer-dist --optimize-autoloader
- name: Lint yaml files
run: |
make yaml-lint