Skip to content

Commit

Permalink
prototype of v2 (via #55)
Browse files Browse the repository at this point in the history
  • Loading branch information
remorhaz committed Sep 15, 2021
1 parent 56c65ae commit 7e1af7b
Show file tree
Hide file tree
Showing 54 changed files with 3,722 additions and 1,230 deletions.
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
102 changes: 51 additions & 51 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,66 +1,66 @@
name: Build

on:
workflow_dispatch:
pull_request:
branches:
- '*'
push:
branches:
- '*'
- 'master'

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 }}
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
with:
php-version: '7.2'
- name: Install
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
- 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.3'
- name: Install
php-version: ${{ matrix.php-version }}
extensions: pcntl, posix
coverage: xdebug
ini-values: error_reporting=E_ALL

- name: Install dependencies
run: composer update
- name: Test
--prefer-dist
--no-progress
${{ 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

0 comments on commit 7e1af7b

Please sign in to comment.