Lock file maintenance #1565
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Continuous Integration" | |
on: | |
pull_request: | |
push: | |
branches: | |
tags: | |
env: | |
default_php: "8.1" | |
php_extensions: "" | |
jobs: | |
ci: | |
uses: laminas/workflow-continuous-integration/.github/workflows/[email protected] | |
coverage: | |
name: PHPUnit Coverage | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: shivammathur/[email protected] | |
with: | |
php-version: ${{ env.default_php }} | |
extensions: pcov | |
coverage: pcov | |
ini-values: pcov.enabled=1 | |
- uses: ramsey/[email protected] | |
- run: php ./vendor/bin/phpunit --coverage-clover=coverage.xml | |
# Env allows smoke tests to run against a real repository | |
env: | |
PRISMIC_REPOSITORY: ${{ secrets.PRISMIC_REPOSITORY }} | |
PRISMIC_TOKEN: ${{ secrets.PRISMIC_TOKEN }} | |
- uses: codecov/codecov-action@v5 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./coverage.xml | |
fail_ci_if_error: false | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
composer-require-checker: | |
name: "Check for missing dependencies" | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: shivammathur/[email protected] | |
with: | |
php-version: ${{ env.default_php }} | |
ini-values: memory_limit=-1 | |
extensions: ${{ env.php_extensions }} | |
- uses: ramsey/[email protected] | |
with: | |
dependency-versions: "highest" | |
- run: composer global config bin-dir /usr/local/bin | |
- run: composer global require maglnet/composer-require-checker | |
- run: /usr/local/bin/composer-require-checker check | |
mutation-tests: | |
name: "Mutation Tests" | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: "actions/checkout@v4" | |
- uses: shivammathur/[email protected] | |
with: | |
coverage: "xdebug" | |
php-version: ${{ env.default_php }} | |
- uses: ramsey/[email protected] | |
with: | |
dependency-versions: "highest" | |
- run: "vendor/bin/infection --configuration=infection-custom.json" |