Skip to content

Commit 7e1af7b

Browse files
authored
prototype of v2 (via allure-framework#55)
1 parent 56c65ae commit 7e1af7b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+3722
-1230
lines changed

.gitattributes

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Define the line ending behavior of the different file extensions
2+
# Set default behavior, in case users don't have core.autocrlf set.
3+
* text text=auto eol=lf
4+
5+
.php diff=php
6+
7+
# Declare files that will always have CRLF line endings on checkout.
8+
*.bat eol=crlf
9+
10+
# Declare files that will always have LF line endings on checkout.
11+
*.pem eol=lf
12+
13+
# Denote all files that are truly binary and should not be modified.
14+
*.png binary
15+
*.jpg binary
16+
*.gif binary
17+
*.ico binary
18+
*.mo binary
19+
*.pdf binary
20+
*.phar binary
21+
*.woff binary
22+
*.woff2 binary
23+
*.ttf binary
24+
*.otf binary
25+
*.eot binary

.github/workflows/build.yml

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,66 @@
11
name: Build
22

33
on:
4+
workflow_dispatch:
45
pull_request:
56
branches:
67
- '*'
78
push:
89
branches:
9-
- '*'
10+
- 'master'
1011

1112
jobs:
12-
build71:
13-
runs-on: ubuntu-latest
14-
steps:
15-
- uses: actions/[email protected]
16-
- uses: shivammathur/setup-php@v2
17-
with:
18-
php-version: '7.1.3'
19-
- name: Install
20-
run: composer update
21-
- name: Test
22-
run: composer test
23-
build72:
24-
runs-on: ubuntu-latest
13+
tests:
14+
name: PHP ${{ matrix.php-version }} on ${{ matrix.os }} (${{ matrix.composer-options }})
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
php-version:
20+
- "8.0"
21+
- "8.1"
22+
os:
23+
- ubuntu-latest
24+
- windows-latest
25+
- macOS-latest
26+
composer-options:
27+
- ""
28+
- "--prefer-lowest"
2529
steps:
26-
- uses: actions/[email protected]
27-
- uses: shivammathur/setup-php@v2
28-
with:
29-
php-version: '7.2'
30-
- name: Install
31-
run: composer update
32-
- name: Test
33-
run: composer test
34-
build73:
35-
runs-on: ubuntu-latest
36-
steps:
37-
- uses: actions/[email protected]
38-
- uses: shivammathur/setup-php@v2
30+
- name: Checkout
31+
uses: actions/[email protected]
32+
33+
- name: Validate composer.json and composer.lock
34+
run: composer validate
35+
36+
- name: Set up PHP ${{ matrix.php-version }}
37+
uses: shivammathur/setup-php@v2
3938
with:
40-
php-version: '7.3'
41-
- name: Install
39+
php-version: ${{ matrix.php-version }}
40+
extensions: pcntl, posix
41+
coverage: xdebug
42+
ini-values: error_reporting=E_ALL
43+
44+
- name: Install dependencies
4245
run: composer update
43-
- name: Test
46+
--prefer-dist
47+
--no-progress
48+
${{ matrix.composer-options }}
49+
50+
- name: Run tests
51+
if: ${{ matrix.os != 'windows-latest' && matrix.php-version != '8.1' }}
4452
run: composer test
45-
build74:
46-
runs-on: ubuntu-latest
47-
steps:
48-
- uses: actions/[email protected]
49-
- uses: shivammathur/setup-php@v2
50-
with:
51-
php-version: '7.4'
52-
- name: Install
53-
run: composer update
54-
- name: Test
53+
54+
- name: Run tests (windows)
55+
if: ${{ matrix.os == 'windows-latest' && matrix.php-version != '8.1' }}
56+
run: composer test-windows
57+
58+
- name: Run tests (experimental)
59+
if: ${{ matrix.os != 'windows-latest' && matrix.php-version == '8.1' }}
60+
continue-on-error: true
5561
run: composer test
56-
build80:
57-
runs-on: ubuntu-latest
58-
steps:
59-
- uses: actions/[email protected]
60-
- uses: shivammathur/setup-php@v2
61-
with:
62-
php-version: '8.0'
63-
- name: Install
64-
run: composer update
65-
- name: Test
66-
run: composer test
62+
63+
- name: Run tests (windows, experimental)
64+
if: ${{ matrix.os == 'windows-latest' && matrix.php-version == '8.1' }}
65+
continue-on-error: true
66+
run: composer test-windows

.gitignore

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
*.iml
2-
.idea
3-
vendor/*
4-
composer.phar
5-
composer.lock
6-
nbproject
71
/build
2+
/vendor/
3+
/composer.lock
4+
/phpunit.xml
5+
/phpcs.xml
6+
/psalm.xml
87
.phpunit.result.cache

0 commit comments

Comments
 (0)