shlink/.github/workflows/ci-mutation-tests.yml

33 lines
1018 B
YAML
Raw Normal View History

name: Mutation tests
on:
workflow_call:
inputs:
test-group:
type: string
required: true
description: One of unit, db, api or cli
jobs:
mutation-tests:
runs-on: ubuntu-22.04
strategy:
matrix:
php-version: [ '8.1' ]
steps:
2022-08-13 04:06:41 -05:00
- uses: actions/checkout@v3
2022-08-13 04:16:33 -05:00
- uses: './.github/actions/ci-setup'
with:
php-version: ${{ matrix.php-version }}
2022-08-13 04:16:33 -05:00
php-extensions: openswoole-4.11.1
extensions-cache-key: mutation-tests-extensions-${{ matrix.php-version }}-${{ inputs.test-group }}
- uses: actions/download-artifact@v3
with:
path: build
- if: ${{ inputs.test-group == 'unit' }}
run: composer infect:ci:unit -- --git-diff-lines --logger-github=false
env:
INFECTION_BADGE_API_KEY: ${{ secrets.INFECTION_BADGE_API_KEY }}
- if: ${{ inputs.test-group != 'unit' }}
run: composer infect:ci:${{ inputs.test-group }} -- --git-diff-lines --logger-github=false