wip #6
  
    
      This file contains hidden or 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: Run Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| tests: | |
| name: Run Pest PHP Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Checkout the repository code | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| # Set up PHP environment | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.2' | |
| extensions: mbstring, xml, json | |
| tools: composer:v2 | |
| # Install Composer dependencies | |
| - name: Install dependencies | |
| run: composer install --prefer-dist --no-progress | |
| # Run Pest tests | |
| - name: Run tests | |
| run: ./vendor/bin/pest |