Skip to content
Closed
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
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.gitattributes export-ignore
.gitignore export-ignore
.github export-ignore
36 changes: 36 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Run tests

on: [push]

jobs:
test-php:
name: Test on php ${{ matrix.php-version }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
php-version: ["7.1", "7.2", "7.3", "7.4", "8.0"]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v1
- name: Use php ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: posix, mbstring
coverage: xdebug
tools: composer:v2
- name: Cache module
uses: actions/cache@v2
with:
path: ~/.composer/cache/
key: composer-cache
- name: Install dependencies
if: ${{ matrix.php-version != '8.0' }}
run: composer install --no-interaction --prefer-dist --no-progress --no-suggest
- name: Install dependencies for php 8.0
if: ${{ matrix.php-version == '8.0' }}
run: composer install --no-interaction --prefer-dist --no-progress --no-suggest --ignore-platform-reqs
- name: Run php tests
run: composer run phpunit
- name: Send coverage
uses: codecov/codecov-action@v1
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# IntelliJ project files
.idea
.vscode
*.iml
.phpunit.result.cache
/vendor/
/build/
File renamed without changes.
Loading