Skip to content

Commit

Permalink
chore: workflows and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mnavarrocarter committed Mar 4, 2024
1 parent 8d5b060 commit 9a181aa
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 17 deletions.
16 changes: 1 addition & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,4 @@ jobs:
with:
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
secrets: inherit
11 changes: 10 additions & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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'
path: '.dev/coverage'
- name: Deploy to GitHub Pages
if: ${{ github.ref_name == 'master' }}
id: deployment
uses: actions/deploy-pages@v4
1 change: 1 addition & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
file that was distributed with this source code.
EOF;


return (new PhpCsFixer\Config())
->setCacheFile('/tmp/php-cs-fixer')
->setRiskyAllowed(true)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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');
```
Expand Down

0 comments on commit 9a181aa

Please sign in to comment.