Skip to content

v 1.0.3

v 1.0.3 #9

Workflow file for this run

name: Tests
on:
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
# Note: 8.2+ is required only for the test tools, not for the package's code itself.
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: mbstring, opcache
- name: Install Composer
run: |
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
- name: Install composer packages for code-quality
run: cd ${{ github.workspace }}/code-quality; composer install
- name: Validate code style with PHP Code Sniffer
run: cd ${{ github.workspace }}/code-quality; composer phpcs
- name: Perform static code analysis with PHPStan
run: cd ${{ github.workspace }}/code-quality; composer phpstan
- name: Generate package autoloader files
run: cd ${{ github.workspace }}; composer install
- name: Install composer packages for tests
run: cd ${{ github.workspace }}/tests; composer install
- name: Run Pest tests
run: cd ${{ github.workspace }}/tests; composer pest