ci(deps): bump orhun/git-cliff-action from 2.0.6 to 2.1.0 #226
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
name: Tests | |
on: | |
# Trigger the workflow on pushes to only the 'master', 'support' and 'release' branches | |
push: | |
branches: | |
- master | |
- support/* | |
- release/* | |
# Trigger the workflow on any pull request | |
pull_request: | |
types: [ opened, reopened ] | |
# Trigger the workflow on manual dispatch | |
workflow_dispatch: | |
jobs: | |
ci: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
php: ['8.1', '8.2'] | |
dependency-version: [prefer-lowest, prefer-stable] | |
name: PHP ${{ matrix.php }} - ${{ matrix.os }} - ${{ matrix.dependency-version }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3.5.2 | |
- name: Setup PHP environment | |
uses: shivammathur/setup-php@2.25.2 | |
with: | |
php-version: ${{ matrix.php }} | |
tools: composer:v2 | |
coverage: pcov | |
- name: Get Composer Cache Directory | |
id: composer-cache | |
run: | | |
echo "::set-output name=dir::$(composer config cache-files-dir)" | |
- uses: actions/cache@v3.3.1 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
restore-keys: | | |
${{ runner.os }}-composer- | |
- name: Setup problem matches | |
run: | | |
echo "::add-matcher::${{ runner.tool_cache }}/php.json" | |
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | |
- name: Install PHP dependencies | |
run: composer update --${{ matrix.dependency-version }} --no-interaction --no-progress --ansi | |
- name: Run unit tests by pest | |
run: ./vendor/bin/pest --colors=always --coverage --coverage-clover coverage.xml | |
- name: Collect test coverage | |
uses: codecov/codecov-action@v3.1.4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./coverage.xml |