-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f0d2c71
commit dad2499
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
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 |