This commit is contained in:
16
.github/workflows/ci.yml
vendored
16
.github/workflows/ci.yml
vendored
@@ -22,18 +22,4 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
php-version: 8.2
|
php-version: 8.2
|
||||||
composer-cmd: install --ansi --no-interaction --no-progress --no-suggest --prefer-dist
|
composer-cmd: install --ansi --no-interaction --no-progress --no-suggest --prefer-dist
|
||||||
secrets: inherit
|
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
|
|
||||||
11
.github/workflows/php.yml
vendored
11
.github/workflows/php.yml
vendored
@@ -16,6 +16,9 @@ jobs:
|
|||||||
php-checks:
|
php-checks:
|
||||||
name: "PHP Checks"
|
name: "PHP Checks"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
environment:
|
||||||
|
name: github-pages
|
||||||
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
steps:
|
steps:
|
||||||
- name: "Checkout Code"
|
- name: "Checkout Code"
|
||||||
uses: "actions/checkout@v2"
|
uses: "actions/checkout@v2"
|
||||||
@@ -45,7 +48,13 @@ jobs:
|
|||||||
run: "composer test"
|
run: "composer test"
|
||||||
- name: Setup Pages
|
- name: Setup Pages
|
||||||
uses: actions/configure-pages@v4
|
uses: actions/configure-pages@v4
|
||||||
|
if: ${{ github.ref_name == 'master' }}
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-pages-artifact@v3
|
uses: actions/upload-pages-artifact@v3
|
||||||
|
if: ${{ github.ref_name == 'master' }}
|
||||||
with:
|
with:
|
||||||
path: '.dev/coverage'
|
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.
|
file that was distributed with this source code.
|
||||||
EOF;
|
EOF;
|
||||||
|
|
||||||
|
|
||||||
return (new PhpCsFixer\Config())
|
return (new PhpCsFixer\Config())
|
||||||
->setCacheFile('/tmp/php-cs-fixer')
|
->setCacheFile('/tmp/php-cs-fixer')
|
||||||
->setRiskyAllowed(true)
|
->setRiskyAllowed(true)
|
||||||
|
|||||||
Reference in New Issue
Block a user