build: bump infection/infection from 0.27.9 to 0.27.11 #579
Workflow file for this run
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
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
name: Tests | |
jobs: | |
unit-tests: | |
name: Unit tests (PHPUnit) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
php-version: | |
- "8.1" | |
dependencies: | |
# - lowest | |
- highest | |
- locked | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
tools: none | |
- name: Install composer dependencies | |
uses: ramsey/composer-install@2.1.0 | |
with: | |
dependency-versions: ${{ matrix.dependencies }} | |
- name: Run tests with phpunit | |
run: | | |
composer config --no-plugins allow-plugins.infection/extension-installer true | |
composer ci:unit | |
# integration-tests: | |
# name: Integration tests (PHPUnit) | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout | |
# uses: actions/checkout@v2 | |
# - name: Install PHP | |
# uses: shivammathur/setup-php@v2 | |
# with: | |
# php-version: "8.1" | |
# tools: none | |
# - name: Install composer dependencies | |
# uses: ramsey/composer-install@2.1.0 | |
# with: | |
# dependency-versions: ${{ matrix.locked }} | |
# composer-options: --no-ansi --no-interaction --no-progress | |
# - name: Run tests with phpunit | |
# env: | |
# NOTION_TOKEN: ${{ secrets.NOTION_TOKEN }} | |
# TEST_PAGE_ID: ${{ secrets.TEST_PAGE_ID }} | |
# run: composer ci:integration | |
mutation-tests: | |
name: "Mutation tests (Infection)" | |
# if: ${{ always() }} | |
# needs: [coverage] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "8.1" | |
coverage: "pcov" | |
tools: none | |
- name: Install composer dependencies | |
uses: ramsey/composer-install@2.1.0 | |
with: | |
dependency-versions: locked | |
composer-options: --no-ansi --no-interaction --no-progress | |
- name: Run mutation tests with Infection | |
env: | |
NOTION_TOKEN: ${{ secrets.NOTION_TOKEN }} | |
TEST_PAGE_ID: ${{ secrets.TEST_PAGE_ID }} | |
run: composer ci:mutation | |
coverage: | |
name: Test coverage (PHPUnit) | |
# if: ${{ always() }} | |
# needs: [mutation-tests] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "8.1" | |
coverage: pcov | |
tools: none | |
- name: Install composer dependencies | |
uses: ramsey/composer-install@2.1.0 | |
with: | |
dependency-versions: locked | |
composer-options: --no-ansi --no-interaction --no-progress | |
- name: Calculate test coverage | |
env: | |
NOTION_TOKEN: ${{ secrets.NOTION_TOKEN }} | |
TEST_PAGE_ID: ${{ secrets.TEST_PAGE_ID }} | |
run: composer ci:coverage | |
- name: Send code coverage report to Codecov.io | |
uses: codecov/codecov-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |