Skip to content

Bump phpunit/phpunit from 11.5.1 to 11.5.2 #94

Bump phpunit/phpunit from 11.5.1 to 11.5.2

Bump phpunit/phpunit from 11.5.1 to 11.5.2 #94

Workflow file for this run

name: Tests
on:
pull_request:
paths:
- .github/workflows/tests.yml
- app/**
- public/**
- src/**
- testFile/**
- tests/**
- .coveralls.yml
- composer.*
- phpcs.xml
- phpstan.neon.dist
- phpunit.xml
permissions:
pull-requests: write
jobs:
tests:
name: Tests PHP ${{ matrix.php }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [8.2]
experimental: [false]
include:
- php: 8.2
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: xdebug
- name: Set up MeCab
run: |
sudo apt-get update
sudo apt-get install -y mecab libmecab-dev mecab-ipadic-utf8
- name: Check MeCab
run: |
mecab --version
which mecab
- name: cache vendor
id: cache
uses: actions/cache@v4
with:
path: ./vendor
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: composer install
if: steps.cache.outputs.cache-hit != 'true'
run: docker compose up composer
- name: Coding standards
run: vendor/bin/phpcs
- name: Static analysis
run: vendor/bin/phpstan
- name: Tests
run: vendor/bin/phpunit --coverage-clover clover.xml
- name: Report
uses: danhunsaker/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
clover-file: clover.xml