forked from fzaninotto/Faker
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/rector
- Loading branch information
Showing
223 changed files
with
2,899 additions
and
1,800 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
on: # yamllint disable-line rule:truthy | ||
pull_request: ~ | ||
push: | ||
branches: | ||
- "main" | ||
- "[0-9].*" | ||
|
||
name: "BC Check" | ||
|
||
jobs: | ||
roave-bc-check: | ||
name: "Roave BC Check" | ||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
- name: "Checkout code" | ||
uses: "actions/checkout@v3" | ||
|
||
- name: "Roave BC Check" | ||
uses: "addnab/docker-run-action@v3" | ||
with: | ||
image: "nyholm/roave-bc-check-ga" | ||
options: "--env GITHUB_REPOSITORY=${{ github.repository }} --user 1001 --volume ${{ github.workspace }}:/app" | ||
run: "/entrypoint.sh" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
on: # yamllint disable-line rule:truthy | ||
pull_request: ~ | ||
push: | ||
branches: | ||
- "main" | ||
- "[0-9].*" | ||
|
||
name: "Code Coverage" | ||
|
||
jobs: | ||
code-coverage: | ||
name: "Code Coverage" | ||
|
||
strategy: | ||
matrix: | ||
php-version: | ||
- "8.0" | ||
|
||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
- name: "Checkout code" | ||
uses: "actions/checkout@v3" | ||
|
||
- name: "Install PHP with extensions" | ||
uses: "shivammathur/setup-php@v2" | ||
with: | ||
coverage: "xdebug" | ||
extensions: "intl" | ||
php-version: "${{ matrix.php-version }}" | ||
|
||
- name: "Determine composer cache directory" | ||
id: "composer-cache" | ||
run: "echo \"directory=$(composer config cache-dir)\" >> $GITHUB_OUTPUT" | ||
|
||
- name: "Cache dependencies installed with composer" | ||
uses: "actions/cache@v3" | ||
with: | ||
path: "${{ steps.composer-cache.outputs.directory }}" | ||
key: "composer-${{ matrix.php-version }}-${{ hashFiles('composer.*') }}" | ||
restore-keys: | | ||
composer-${{ matrix.php-version }}- | ||
composer- | ||
- name: "Download dependencies" | ||
run: | | ||
composer update --no-interaction --no-progress --optimize-autoloader | ||
- name: "Collect code coverage with PHPUnit" | ||
run: | | ||
vendor/bin/phpunit --coverage-clover=.build/logs/clover.xml | ||
- name: "Send code coverage report to codecov.io" | ||
run: | | ||
bash <(curl -s https://codecov.io/bash) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
on: # yamllint disable-line rule:truthy | ||
pull_request: ~ | ||
push: | ||
branches: | ||
- "main" | ||
- "[0-9].*" | ||
|
||
name: "Coding Standards" | ||
|
||
jobs: | ||
php-cs-fixer: | ||
name: "php-cs-fixer" | ||
|
||
runs-on: "ubuntu-latest" | ||
|
||
strategy: | ||
matrix: | ||
php-version: | ||
- "7.4" | ||
|
||
steps: | ||
- name: "Checkout code" | ||
uses: "actions/checkout@v3" | ||
|
||
- name: "Set up PHP" | ||
uses: "shivammathur/setup-php@v2" | ||
with: | ||
coverage: "none" | ||
extensions: "intl" | ||
php-version: "${{ matrix.php-version }}" | ||
|
||
- name: "Determine composer cache directory" | ||
id: "composer-cache" | ||
run: "echo \"directory=$(composer config cache-dir)\" >> $GITHUB_OUTPUT" | ||
|
||
- name: "Cache dependencies installed with composer" | ||
uses: "actions/cache@v3" | ||
with: | ||
path: "${{ steps.composer-cache.outputs.directory }}" | ||
key: "composer-${{ matrix.php-version }}-${{ hashFiles('composer.*') }}" | ||
restore-keys: | | ||
composer-${{ matrix.php-version }}- | ||
composer- | ||
- name: "Download dependencies" | ||
run: | | ||
composer update --no-interaction --no-progress --optimize-autoloader | ||
composer bin php-cs-fixer install --no-interaction --no-progress --optimize-autoloader | ||
- name: "Cache cache file for php-cs-fixer" | ||
uses: "actions/cache@v3" | ||
with: | ||
path: ".php_cs.cache" | ||
key: "composer-${{ matrix.php-version }}-${{ github.ref_name }}" | ||
restore-keys: | | ||
composer-${{ matrix.php-version }}-main | ||
composer-${{ matrix.php-version }} | ||
composer- | ||
- name: "Run php-cs-fixer" | ||
run: | | ||
vendor/bin/php-cs-fixer fix --diff --dry-run --verbose | ||
yamllint: | ||
name: "yamllint" | ||
|
||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
- name: "Checkout code" | ||
uses: "actions/checkout@v3" | ||
|
||
- name: "Lint YAML files" | ||
uses: "ibiqlik/action-yamllint@v3.1.1" | ||
with: | ||
config_file: ".yamllint.yaml" | ||
file_or_dir: "." | ||
strict: true |
Oops, something went wrong.