Merge pull request #8 from blessedjasonmwanza/php-library #1
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 Pest Tests | |
on: | |
push: | |
branches: | |
- main # Change to your default branch | |
- feature/* # Run tests for feature branches | |
pull_request: | |
branches: | |
- main # Run tests for pull requests to main | |
- feature/* # Run tests for pull requests to feature branches | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.2' # Specify your PHP version | |
extensions: mbstring, xml | |
coverage: none | |
- name: Install Composer dependencies | |
run: composer install --no-progress --no-suggest --prefer-dist | |
- name: Run Pest tests | |
run: vendor/bin/pest |