chore: workflows and readme
Some checks failed
Chilean Rut CI / CI (push) Failing after 3m36s

This commit is contained in:
2024-03-04 22:12:31 +00:00
parent 8d5b060acf
commit 9a181aafbd
4 changed files with 13 additions and 17 deletions

View File

@@ -23,17 +23,3 @@ jobs:
php-version: 8.2
composer-cmd: install --ansi --no-interaction --no-progress --no-suggest --prefer-dist
secrets: inherit
# Publishes code coverage report
publish-coverage:
name: "Publish Coverage"
needs: ['ci']
if: ${{ github.ref_name == 'master' }}
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

View File

@@ -16,6 +16,9 @@ jobs:
php-checks:
name: "PHP Checks"
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: "Checkout Code"
uses: "actions/checkout@v2"
@@ -45,7 +48,13 @@ jobs:
run: "composer test"
- name: Setup Pages
uses: actions/configure-pages@v4
if: ${{ github.ref_name == 'master' }}
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
if: ${{ github.ref_name == 'master' }}
with:
path: '.dev/coverage'
- name: Deploy to GitHub Pages
if: ${{ github.ref_name == 'master' }}
id: deployment
uses: actions/deploy-pages@v4

View File

@@ -14,6 +14,7 @@ For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
EOF;
return (new PhpCsFixer\Config())
->setCacheFile('/tmp/php-cs-fixer')
->setRiskyAllowed(true)

View File

@@ -27,7 +27,7 @@ formulario web y `parse` se encargará de sanitizar el string y ver si el RUT es
```php
<?php
use MNC\ChileanRut\Rut;
use MNC\Rut;
$rut = Rut::parse('23.546.565-4');
```