diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 99be3db..bacb0fb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 \ No newline at end of file + secrets: inherit \ No newline at end of file diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index d00b329..a714541 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -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' \ No newline at end of file + path: '.dev/coverage' + - name: Deploy to GitHub Pages + if: ${{ github.ref_name == 'master' }} + id: deployment + uses: actions/deploy-pages@v4 \ No newline at end of file diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index acef7ca..b56e2ac 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -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) diff --git a/README.md b/README.md index 59a0ff0..a0478a8 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ formulario web y `parse` se encargará de sanitizar el string y ver si el RUT es ```php