Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Elie NEHME
committed
Mar 28, 2023
1 parent
eda1ba0
commit 6e5f8d8
Showing
6 changed files
with
191 additions
and
177 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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: build | ||
|
||
on: | ||
push: | ||
branches: ['master', 'feature/*'] | ||
pull_request: | ||
branches: ['master'] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php-versions: [ '8.1', '8.2' ] | ||
phpunit-versions: [ 'latest' ] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
coverage: xdebug | ||
tools: php-cs-fixer, phpunit:${{ matrix.phpunit-versions }} | ||
|
||
- name: Validate composer.json and composer.lock | ||
run: composer validate --strict --no-interaction | ||
|
||
- name: Install Dependencies | ||
run: composer install --no-interaction --prefer-dist --no-progress | ||
|
||
- name: Install coveralls | ||
run: composer require --dev --no-interaction php-coveralls/php-coveralls | ||
|
||
- name: Launch test unit in coverage mode | ||
run: composer test-coverage | ||
|
||
- name: Launch check style | ||
run: composer cs-check | ||
|
||
- name: Publish coveralls | ||
if: matrix.php-versions == '8.1' | ||
env: | ||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | ||
run: vendor/bin/php-coveralls -v |
This file was deleted.
Oops, something went wrong.
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.