This commit is contained in:
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
@@ -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
|
||||
9
.github/workflows/php.yml
vendored
9
.github/workflows/php.yml
vendored
@@ -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
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user