Skip to content

Update root-composer #112

Update root-composer

Update root-composer #112

Workflow file for this run

# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
name: "Tests"
on:
pull_request:
push:
branches:
- "1.x"
concurrency:
group: tests-${{ github.head_ref || github.run_id }} # will be canceled on subsequent pushes in pull requests but not branches
cancel-in-progress: true
jobs:
tests-integration:
name: ${{ matrix.extension-name }}
runs-on: "ubuntu-latest"
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
extension-name:
- "phpstan-doctrine"
- "phpstan-phpunit"
#- "phpstan-mockery"
#- "phpstan-symfony"
#- "phpstan-nette"
#- "phpstan-webmozart-assert"
#- "phpstan-beberlei-assert"
- "phpstan-deprecation-rules"
#- "phpstan-dibi"
#- "phpstan-strict-rules"
fetch-depth:
- 1
script:
- |
infection \
--ignore-msi-with-no-mutations \
--log-verbosity=all \
--debug \
--logger-text=php://stdout
include:
- extension-name: "phpstan-src"
fetch-depth: 101
script: |
OLD_SHA=$(git rev-list HEAD --skip=100 -n 1)
infection \
--git-diff-base=$OLD_SHA \
--git-diff-lines \
--ignore-msi-with-no-mutations \
--log-verbosity=all \
--debug \
--logger-text=php://stdout
steps:
- name: "Checkout extension"
uses: actions/checkout@v6
with:
repository: "phpstan/${{ matrix.extension-name }}"
fetch-depth: ${{ matrix.fetch-depth }}
- name: "Checkout build-infection"
uses: actions/checkout@v6
with:
path: "build-infection"
- uses: ./build-infection/.github/actions/setup-php
with:
php-version: "8.3"
- name: "Install build-infection dependencies"
working-directory: "build-infection"
run: "composer install --no-interaction --no-progress"
- name: "Install dependencies"
run: "composer install --no-interaction --no-progress"
- name: "Configure infection"
run: |
php build-infection/bin/infection-config.php \
> infection.json5
cat infection.json5 | jq
- name: "Restore result cache"
uses: actions/cache/restore@v4
with:
path: ./tmp
key: "result-cache-v1-${{ matrix.extension-name }}-${{ github.run_id }}"
restore-keys: |
result-cache-v1-${{ matrix.extension-name }}-
- name: "Run infection"
run: ${{ matrix.script }}
- name: "Save result cache"
uses: actions/cache/save@v4
if: ${{ !cancelled() }}
with:
path: ./tmp
key: "result-cache-v1-${{ matrix.extension-name }}-${{ github.run_id }}"