Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: CI

on:
push:
branches: ["main", "master"]
pull_request:

permissions:
contents: read

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
php: ['8.1', '8.2', '8.3', '8.4', '8.5']
dependency-version: ['prefer-stable', 'prefer-lowest']

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
tools: composer:v2
extensions: mbstring, json

- name: Validate composer.json
run: composer validate --strict

- name: Get Composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache Composer dependencies
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ matrix.php }}-${{ matrix.dependency-version }}-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-${{ matrix.php }}-

- name: Install dependencies
run: |
composer update --${{ matrix.dependency-version }} \
--no-interaction \
--prefer-dist \
--no-progress

- name: Run PHPUnit
run: composer test

- name: Run PHPStan
if: matrix.dependency-version == 'prefer-stable'
run: composer stan
36 changes: 0 additions & 36 deletions .github/workflows/tests.yml

This file was deleted.

13 changes: 7 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/vendor
/vendor/
/bin/
composer.lock
composer.phar
phpunit.xml
php-cs-fixer.phar
phpcbf.phar
phpcs.phar
.phpunit.result.cache
.phpunit.cache/
.phpunit.result.cache
coverage/
*.cache
.DS_Store
34 changes: 0 additions & 34 deletions .travis.yml

This file was deleted.

Loading