Skip to content

Commit

Permalink
Run tests in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
danon committed Jan 2, 2025
1 parent 7790ac5 commit 7d3bd39
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: danon
43 changes: 43 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: build

on:
pull_request:
push:
paths-ignore:
- "ReadMe.md"

jobs:
tests:
name: Tests
runs-on: ubuntu-latest
strategy:
matrix:
include:
- php-version: 8.0
- php-version: 8.1
- php-version: 8.2
- php-version: 8.3
- php-version: 8.4

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

- name: Use PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: composer:v2

- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.cache/composer
key: php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: php${{ matrix.php-version }}-composer-

- name: Install dependencies
run: composer install --no-progress;

- name: Run tests
run: ./vendor/bin/phpunit test --no-coverage

0 comments on commit 7d3bd39

Please sign in to comment.