forked from fzaninotto/Faker
-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Enhancement: Lint YAML files * Fix: Consistently quote strings in YAML files * Fix: Remove extra empty lines * Fix: Ignore truthy rule for 'on' * Fix: Use explicit null
- Loading branch information
1 parent
65f2e71
commit c9dec13
Showing
9 changed files
with
242 additions
and
160 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
|
||
on: | ||
pull_request: | ||
on: # yamllint disable-line rule:truthy | ||
pull_request: ~ | ||
push: | ||
branches: | ||
- "main" | ||
- "[0-9].*" | ||
|
||
name: BC Check | ||
name: "BC Check" | ||
|
||
jobs: | ||
roave-bc-check: | ||
name: Roave BC Check | ||
runs-on: ubuntu-latest | ||
name: "Roave BC Check" | ||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: "Checkout code" | ||
uses: "actions/checkout@v3" | ||
|
||
- name: Roave BC Check | ||
uses: docker://nyholm/roave-bc-check-ga | ||
- name: "Roave BC Check" | ||
uses: "docker://nyholm/roave-bc-check-ga" |
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 |
---|---|---|
@@ -1,57 +1,57 @@ | ||
on: | ||
pull_request: | ||
on: # yamllint disable-line rule:truthy | ||
pull_request: ~ | ||
push: | ||
branches: | ||
- "main" | ||
- "[0-9].*" | ||
|
||
name: Code Coverage | ||
name: "Code Coverage" | ||
|
||
jobs: | ||
code-coverage: | ||
name: Code Coverage | ||
name: "Code Coverage" | ||
|
||
strategy: | ||
matrix: | ||
php-version: | ||
- '8.0' | ||
- "8.0" | ||
|
||
runs-on: ubuntu-latest | ||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: "Checkout code" | ||
uses: "actions/checkout@v3" | ||
|
||
- name: Install PHP with extensions | ||
uses: shivammathur/setup-php@v2 | ||
- name: "Install PHP with extensions" | ||
uses: "shivammathur/setup-php@v2" | ||
with: | ||
coverage: pcov | ||
extensions: intl | ||
php-version: ${{ matrix.php-version }} | ||
coverage: "pcov" | ||
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: "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 | ||
- name: "Cache dependencies installed with composer" | ||
uses: "actions/cache@v3" | ||
with: | ||
path: ${{ steps.composer-cache.outputs.directory }} | ||
key: composer-${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('composer.*') }} | ||
path: "${{ steps.composer-cache.outputs.directory }}" | ||
key: "composer-${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('composer.*') }}" | ||
restore-keys: | | ||
composer-${{ runner.os }}-${{ matrix.php-version }}- | ||
composer-${{ runner.os }}- | ||
composer- | ||
- name: Download dependencies | ||
- name: "Download dependencies" | ||
run: | | ||
composer update --no-interaction --no-progress --optimize-autoloader | ||
vendor/bin/simple-phpunit install | ||
- name: Collect code coverage with PHPUnit | ||
- name: "Collect code coverage with PHPUnit" | ||
run: | | ||
vendor/bin/simple-phpunit --coverage-clover=.build/logs/clover.xml | ||
- name: Send code coverage report to codecov.io | ||
- name: "Send code coverage report to codecov.io" | ||
run: | | ||
bash <(curl -s https://codecov.io/bash) |
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,79 @@ | ||
on: | ||
on: # yamllint disable-line rule:truthy | ||
pull_request: ~ | ||
push: | ||
branches: | ||
- "main" | ||
- "[0-9].*" | ||
|
||
name: Coding Standards | ||
name: "Coding Standards" | ||
|
||
jobs: | ||
php-cs-fixer: | ||
name: php-cs-fixer | ||
name: "php-cs-fixer" | ||
|
||
runs-on: ubuntu-latest | ||
runs-on: "ubuntu-latest" | ||
|
||
strategy: | ||
matrix: | ||
php-version: | ||
- 7.1 | ||
- "7.1" | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: "Checkout code" | ||
uses: "actions/checkout@v3" | ||
|
||
- name: Set up PHP | ||
uses: shivammathur/setup-php@v2 | ||
- name: "Set up PHP" | ||
uses: "shivammathur/setup-php@v2" | ||
with: | ||
coverage: none | ||
extensions: intl | ||
php-version: ${{ matrix.php-version }} | ||
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: "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 | ||
- name: "Cache dependencies installed with composer" | ||
uses: "actions/cache@v3" | ||
with: | ||
path: ${{ steps.composer-cache.outputs.directory }} | ||
key: composer-${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('composer.*') }} | ||
path: "${{ steps.composer-cache.outputs.directory }}" | ||
key: "composer-${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('composer.*') }}" | ||
restore-keys: | | ||
composer-${{ runner.os }}-${{ matrix.php-version }}- | ||
composer-${{ runner.os }}- | ||
composer- | ||
- name: Download dependencies | ||
- 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 | ||
- name: "Cache cache file for php-cs-fixer" | ||
uses: "actions/cache@v3" | ||
with: | ||
path: .php_cs.cache | ||
key: composer-${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('composer.*') }} | ||
path: ".php_cs.cache" | ||
key: "composer-${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('composer.*') }}" | ||
restore-keys: | | ||
composer-${{ runner.os }}-${{ matrix.php-version }}- | ||
composer-${{ runner.os }}- | ||
composer- | ||
- name: Run php-cs-fixer | ||
- 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.