Code Improvements for check Method #47
Workflow file for this run
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: Run Tests | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
# Step 1: Check out the repository | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
# Step 2: Set up PHP | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "8.0" # Set your desired PHP version | |
extensions: mbstring, dom, zip | |
# Step 3: Install Composer dependencies | |
- name: Install dependencies | |
run: composer install --no-interaction --prefer-dist | |
# Step 4: Run PHPUnit tests | |
- name: Run tests | |
run: php ./vendor/bin/phpunit |