diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..b0f6211 --- /dev/null +++ b/.github/workflows/tests.yml @@ -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