Skip to content

Add changelog for v1.1.0 #385

Add changelog for v1.1.0

Add changelog for v1.1.0 #385

Workflow file for this run

name: CI
on:
workflow_dispatch: # Can manually run from any branch
push:
branches:
- trunk
pull_request:
jobs:
php-tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- php: '8.3'
os: 'ubuntu-latest'
- php: '8.2'
os: 'ubuntu-latest'
- php: '8.1'
os: 'ubuntu-latest'
- php: '8.0'
os: 'ubuntu-24.04'
- php: '7.4'
os: 'ubuntu-24.04'
fail-fast: false
env:
COVERAGE_CACHE_PATH: phpunit-coverage-cache
PHP_VERSION: ${{ matrix.php }}
steps:
- uses: actions/checkout@v4
- name: Set up PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: pcov
- name: Get Composer cache directory
id: composer-cache
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Install dependencies
run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Restore phpunit coverage cache
uses: actions/cache@v4
with:
path: ${{ env.COVERAGE_CACHE_PATH }}
key: ${{ runner.os }}-coverage-${{ github.ref }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-coverage-${{ github.ref }}-
${{ runner.os }}-coverage-
- name: Execute tests with PHPUnit and output code coverage report
env:
DB_CONNECTION: sqlite
DB_DATABASE: database/database.sqlite
# Generate coverage file, so it can be uploaded later if we choose.
# Otherwise, current coverage can be viewed in the action output.
# Tests should be run randomly to catch any test dependency issue.
run: |
vendor/bin/phpunit --order-by="random" --coverage-cache="$COVERAGE_CACHE_PATH" --coverage-clover=./clover.xml --coverage-text
- name: Upload test coverage results to Coveralls
if: ${{ env.PHP_VERSION == '8.1' }}
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
vendor/bin/php-coveralls --coverage_clover="./clover.xml" --json_path="./coveralls-upload.json" -v
php-compatibility:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Install Dependencies
run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist --ignore-platform-req php
- name: Run PHP Code Sniffer using the PHPCompatibility standard
run: vendor/bin/phpcs
php-static-analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Install Dependencies
run: |
composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Run phpstan
run: vendor/bin/phpstan