-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from swagindustries/feature/php-8
- Loading branch information
Showing
25 changed files
with
163 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,5 +28,5 @@ trim_trailing_whitespace = false | |
[*.feature] | ||
indent_size = 2 | ||
|
||
[{ci.yml,behat.yaml}] | ||
[behat.yaml] | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,90 @@ | ||
name: Test suite | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
schedule: | ||
- cron: '0 0 * * *' | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
unit-test: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
php: [7.4] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/cache@v2 | ||
id: cache-composer | ||
with: | ||
path: ~/.composer/cache | ||
key: composer-php-${{ matrix.php }}-${{ github.sha }} | ||
restore-keys: composer-php-${{ matrix.php }}- | ||
|
||
- name: Valid composer.json | ||
run: make test.composer | ||
|
||
- name: Install dependencies | ||
run: composer install --prefer-dist --no-progress --no-suggest | ||
|
||
- name: Run PHP CS Fixer | ||
run: make test.phpcs | ||
|
||
- name: Run PHPUnit tests | ||
run: make test.phpunit | ||
|
||
functional-test: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
php: [7.4] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/cache@v2 | ||
id: cache-composer | ||
with: | ||
path: ~/.composer/cache | ||
key: composer-php-${{ matrix.php }}-${{ github.sha }} | ||
restore-keys: composer-php-${{ matrix.php }}- | ||
|
||
|
||
- name: Install dependencies | ||
run: composer install --prefer-dist --no-progress --no-suggest | ||
|
||
- name: Run Behat tests | ||
run: make test.behat | ||
unit-test: | ||
name: Unit tests | ||
strategy: | ||
matrix: | ||
php: [ 7.4, 8.0 ] | ||
os: [ ubuntu-latest ] | ||
include: | ||
- os: [ ubuntu-latest ] | ||
php: 8.1 | ||
composer-flag: "'--ignore-platform-reqs'" | ||
|
||
- os: [ ubuntu-latest ] | ||
php: 7.3 | ||
composer-flag: "'--prefer-lowest'" | ||
|
||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
|
||
- uses: actions/cache@v2 | ||
id: cache-composer | ||
with: | ||
path: ~/.composer/cache | ||
key: composer-php-${{ matrix.php }}-${{ github.sha }} | ||
restore-keys: composer-php-${{ matrix.php }}- | ||
|
||
- name: Valid composer.json | ||
run: make test.composer | ||
|
||
- name: Install dependencies | ||
run: composer update --prefer-dist --no-progress --no-suggest ${{ matrix.composer-flag }} | ||
|
||
- name: Run PHP CS Fixer | ||
run: make test.phpcs | ||
|
||
- name: Run PHPUnit tests | ||
run: make test.phpunit | ||
|
||
functional-test: | ||
name: Functionnal tests | ||
strategy: | ||
matrix: | ||
php: [ 7.4, 8.0 ] | ||
os: [ ubuntu-latest ] | ||
include: | ||
- os: [ ubuntu-latest ] | ||
php: 8.1 | ||
composer-flag: "'--ignore-platform-reqs'" | ||
|
||
- os: [ ubuntu-latest ] | ||
php: 7.3 | ||
composer-flag: "'--prefer-lowest'" | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
|
||
- uses: actions/cache@v2 | ||
id: cache-composer | ||
with: | ||
path: ~/.composer/cache | ||
key: composer-php-${{ matrix.php }}-${{ github.sha }} | ||
restore-keys: composer-php-${{ matrix.php }}- | ||
|
||
|
||
- name: Install dependencies | ||
run: composer update --prefer-dist --no-progress --no-suggest ${{ matrix.composer-flag }} | ||
|
||
- name: Run Behat tests | ||
run: make test.behat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ vendor | |
.php_cs.cache | ||
tests/TestApplication/var | ||
.couscous | ||
.phpunit.result.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.