Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prototype of v2 #55

Merged
merged 7 commits into from
Sep 15, 2021
Merged
Show file tree
Hide file tree
Changes from 5 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
25 changes: 25 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Define the line ending behavior of the different file extensions
# Set default behavior, in case users don't have core.autocrlf set.
* text text=auto eol=lf

.php diff=php

# Declare files that will always have CRLF line endings on checkout.
*.bat eol=crlf

# Declare files that will always have LF line endings on checkout.
*.pem eol=lf

# Denote all files that are truly binary and should not be modified.
*.png binary
*.jpg binary
*.gif binary
*.ico binary
*.mo binary
*.pdf binary
*.phar binary
*.woff binary
*.woff2 binary
*.ttf binary
*.otf binary
*.eot binary
110 changes: 60 additions & 50 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,66 +1,76 @@
name: Build

on:
workflow_dispatch:
pull_request:
branches:
- '*'
push:
branches:
- '*'
- 'main'
baev marked this conversation as resolved.
Show resolved Hide resolved

jobs:
build71:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: shivammathur/setup-php@v2
with:
php-version: '7.1.3'
- name: Install
run: composer update
- name: Test
run: composer test
build72:
runs-on: ubuntu-latest
tests:
name: PHP ${{ matrix.php-version }} on ${{ matrix.os }} (${{ matrix.composer-options }})
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.php-version == '8.1' }}
strategy:
fail-fast: false
matrix:
php-version:
- "8.0"
- "8.1"
os:
- ubuntu-latest
- windows-latest
- macOS-latest
composer-options:
- ""
- "--prefer-lowest"
steps:
- uses: actions/checkout@v2.3.4
- uses: shivammathur/setup-php@v2
- name: Checkout
uses: actions/checkout@v2.3.4

- name: Validate composer.json and composer.lock
run: composer validate

- name: Set up PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
with:
php-version: '7.2'
- name: Install
php-version: ${{ matrix.php-version }}
extensions: pcntl, posix
coverage: xdebug
ini-values: error_reporting=E_ALL

- name: Install dependencies
if: ${{ matrix.php-version != '8.1' }}
run: composer update
- name: Test
run: composer test
build73:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: shivammathur/setup-php@v2
with:
php-version: '7.3'
- name: Install
--prefer-dist
--no-progress
${{ matrix.composer-options }}

- name: Install dependencies (experimental)
if: ${{ matrix.php-version == '8.1' }}
run: composer update
- name: Test
--prefer-dist
--no-progress
--ignore-platform-req=php
${{ matrix.composer-options }}

- name: Run tests
if: ${{ matrix.os != 'windows-latest' && matrix.php-version != '8.1' }}
run: composer test
build74:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
- name: Install
run: composer update
- name: Test

- name: Run tests (windows)
if: ${{ matrix.os == 'windows-latest' && matrix.php-version != '8.1' }}
run: composer test-windows

- name: Run tests (experimental)
if: ${{ matrix.os != 'windows-latest' && matrix.php-version == '8.1' }}
continue-on-error: true
run: composer test
build80:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
- name: Install
run: composer update
- name: Test
run: composer test

- name: Run tests (windows, experimental)
if: ${{ matrix.os == 'windows-latest' && matrix.php-version == '8.1' }}
continue-on-error: true
run: composer test-windows
11 changes: 5 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
*.iml
.idea
vendor/*
composer.phar
composer.lock
nbproject
/build
/vendor/
/composer.lock
/phpunit.xml
/phpcs.xml
/psalm.xml
.phpunit.result.cache
Loading