Skip to content

Commit

Permalink
Add git flow for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
blessedjasonmwanza committed Oct 21, 2024
1 parent f0d2c71 commit dad2499
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/tests.yml
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

0 comments on commit dad2499

Please sign in to comment.