forked from FakerPHP/Faker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'FakerPHP:2.0' into main
- Loading branch information
Showing
742 changed files
with
9,393 additions
and
8,875 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,17 @@ | ||
# Security Policy | ||
|
||
## Supported Versions | ||
|
||
The following versions of `fakerphp/faker` have active support: | ||
|
||
- `^1.23.0` | ||
|
||
## Unsupported Versions | ||
|
||
The following versions of `fakerphp/faker` have reached their end of life: | ||
|
||
- `<1.23.0` | ||
|
||
## Reporting a Vulnerability | ||
|
||
If you believe that you have found a security vulnerability, please send an email to [email protected]. Ensure to include all details required to understand the severity of the issue. |
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@v4" | ||
|
||
- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,36 @@ | ||
name: Update branch alias | ||
name: "Update branch alias" | ||
|
||
on: | ||
on: # yamllint disable-line rule:truthy | ||
push: | ||
tags: ['*'] | ||
tags: ["*"] | ||
|
||
jobs: | ||
branch-alias: | ||
name: Update branch alias | ||
runs-on: ubuntu-latest | ||
name: "Update branch alias" | ||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
- name: Set up PHP | ||
uses: shivammathur/setup-php@v2 | ||
- name: "Set up PHP" | ||
uses: "shivammathur/setup-php@v2" | ||
with: | ||
php-version: 7.4 | ||
coverage: none | ||
php-version: "7.4" | ||
coverage: "none" | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: "Checkout code" | ||
uses: "actions/checkout@v4" | ||
with: | ||
ref: main | ||
ref: "main" | ||
|
||
- name: Find branch alias | ||
id: find_alias | ||
- name: "Find branch alias" | ||
id: "find_alias" | ||
run: | | ||
TAG=$(echo $GITHUB_REF | cut -d'/' -f 3) | ||
echo "Last tag was $TAG" | ||
ARR=(${TAG//./ }) | ||
ARR[1]=$((${ARR[1]}+1)) | ||
echo ::set-output name=alias::${ARR[0]}.${ARR[1]} | ||
echo "name=alias::${ARR[0]}.${ARR[1]}" >> $GITHUB_OUTPUT | ||
- name: Update branch alias | ||
- name: "Update branch alias" | ||
run: | | ||
CURRENT_ALIAS=$(composer config extra.branch-alias.dev-main | cut -d'-' -f 1) | ||
|
@@ -53,15 +53,15 @@ jobs: | |
composer config extra.branch-alias.dev-main ${{ steps.find_alias.outputs.alias }}-dev | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v3 | ||
- name: "Create Pull Request" | ||
uses: "peter-evans/create-pull-request@v5" | ||
with: | ||
base: main | ||
branch: branch-alias-update | ||
author: GitHub <[email protected]> | ||
committer: GitHub <[email protected]> | ||
commit-message: Updating branch alias to ${{ steps.find_alias.outputs.alias }} | ||
title: Update branch alias | ||
labels: pinned, do not merge | ||
base: "main" | ||
branch: "branch-alias-update" | ||
author: "GitHub <[email protected]>" | ||
committer: "GitHub <[email protected]>" | ||
commit-message: "Updating branch alias to ${{ steps.find_alias.outputs.alias }}" | ||
title: "Update branch alias" | ||
labels: "pinned, do not merge" | ||
body: | | ||
Since we just tagged a new version, we need to update composer.json branch alias. This should not be merged until there are new features, as it would prevent patch releases. |
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@v4" | ||
|
||
- 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 --ansi --no-interaction --no-progress --optimize-autoloader | ||
- name: "Collect code coverage with PHPUnit" | ||
run: | | ||
vendor/bin/phpunit --colors=always --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.
Oops, something went wrong.