Skip to content

Enhance documentation deployment workflow by enabling path restrictio… #10

Enhance documentation deployment workflow by enabling path restrictio…

Enhance documentation deployment workflow by enabling path restrictio… #10

Workflow file for this run

name: Tests
on:
push:
branches: ['**']
pull_request:
branches: [main, master]
jobs:
pest:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
extensions: mbstring, xml, ctype, json, bcmath
coverage: none
- 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.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install dependencies
run: composer install --no-interaction --prefer-dist
- name: Run Pest
run: vendor/bin/pest --compact