-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ci): implement base of test unit and move current ci to codding …
…standards and implement missing docs
- Loading branch information
1 parent
99b2c63
commit 8b3d86a
Showing
10 changed files
with
86 additions
and
35 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 |
---|---|---|
@@ -1,14 +1,46 @@ | ||
name: CI | ||
name: "CI Tests" | ||
|
||
on: [push] | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
build-test: | ||
runs-on: ubuntu-latest | ||
|
||
test: | ||
runs-on: 'ubuntu-20.04' | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: ['8.1', '8.2', '8.3'] | ||
symfony: ['6.0.*', '6.1.*', '6.2.*', '6.3.*', '6.4.*', '7.0.*', '7.1.*'] | ||
composer-flags: ['--prefer-stable'] | ||
extensions: ['curl, iconv, mbstring, pdo, pdo_sqlite, sqlite, zip'] | ||
include: | ||
- php: '8.1' | ||
symfony: '6.0.*' | ||
composer-flags: '--prefer-stable --prefer-lowest' | ||
extensions: 'curl, iconv, mbstring, pdo, pdo_sqlite, sqlite, zip' | ||
exclude: | ||
- php: '8.2' | ||
symfony: '6.0.*' | ||
name: "PHP ${{ matrix.php }} - Symfony ${{ matrix.symfony }}${{ matrix.composer-flags != '' && format(' - Composer {0}', matrix.composer-flags) || '' }}" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: php-actions/composer@v6 | ||
- uses: php-actions/phpstan@v3 | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
- name: Cache dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.composer/cache/files | ||
key: dependencies-symfony-${{ matrix.symfony }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}-flags-${{ matrix.composer-flags }} | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
memory_limit: -1 | ||
php-version: ${{ matrix.php }} | ||
tools: composer:v2, flex | ||
extensions: ${{ matrix.extensions }} | ||
coverage: none | ||
- name: Install dependencies | ||
run: composer update ${{ matrix.composer-flags }} --prefer-dist --no-suggest | ||
env: | ||
SYMFONY_REQUIRE: ${{ matrix.symfony }} | ||
|
||
- name: Run PHPUnit | ||
run: bin/phpunit --verbose | ||
|
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,13 @@ | ||
name: "CI Tests" | ||
|
||
on: [push, pull_request] | ||
jobs: | ||
build-lint: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: php-actions/composer@v6 | ||
- uses: php-actions/phpstan@v3 | ||
with: | ||
memory_limit: -1 |
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