Skip to content

Commit

Permalink
add GitHub Actions workflow for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vildanbina committed Oct 5, 2024
1 parent debdde8 commit 2b04236
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/php-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Run Tests

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
tests:
runs-on: ubuntu-latest

strategy:
matrix:
php-version: [ 8.0, 8.1, 8.2 ]

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: mbstring, dom, pdo, pdo_mysql
coverage: none

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest

- name: Run tests
run: ./vendor/bin/phpunit --testdox

0 comments on commit 2b04236

Please sign in to comment.