Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions .github/workflows/ci-code-style.yml

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/ci-leak-test.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .github/workflows/ci-markdown-lint.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/ci-mutant-test.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/ci-phpstan.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/ci-psalm.yml

This file was deleted.

131 changes: 131 additions & 0 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
name: Test

on:
- push
- pull_request

jobs:

yml-lint:
runs-on: ubuntu-latest
name: 'YML lint'
timeout-minutes: 3
steps:
- uses: actions/checkout@v4
- run: docker pull cytopia/yamllint
- run: docker run --rm -t -v $(pwd):/data cytopia/yamllint --config-file=tests/.yamllint .

markdown-lint:
runs-on: ubuntu-latest
name: 'Markdown lint'
timeout-minutes: 3
steps:
- uses: actions/checkout@v4
- run: docker pull tmknom/markdownlint
- run: docker run --rm -v $(pwd):/work tmknom/markdownlint '**/*.md' --config tests/.markdownlintrc --ignore vendor --ignore CHANGELOG.md --ignore var --ignore tmp

cs-lint:
runs-on: ubuntu-latest
name: 'CS Lint'
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
tools: composer:v2
- run: composer install --dev --ignore-platform-req=php --quiet
shell: bash
- run: PHP_CS_FIXER_IGNORE_ENV=1 composer cs:list
shell: bash

psalm:
runs-on: ubuntu-latest
name: 'Psalm'
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
tools: composer:v2
- run: composer install --ignore-platform-req=php --quiet
shell: bash
- run: composer psalm
shell: bash

phpstan:
runs-on: ubuntu-latest
name: 'Phpstan'
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
tools: composer:v2
- run: composer install --ignore-platform-req=php --quiet
shell: bash
- run: composer phpstan
shell: bash

test-unit:
runs-on: ubuntu-latest
name: "Running unit tests for PHP ${{ matrix.php-version }}"
strategy:
fail-fast: false
matrix:
php-version: ['8.2', '8.3', '8.4']
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: composer:v2
- run: composer install --ignore-platform-req=php --quiet
shell: bash
- run: composer test
shell: bash

test-unit-coverage:
runs-on: ubuntu-latest
name: "Running unit test coverage"
timeout-minutes: 5
needs:
- test-unit
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
tools: composer:v2
- run: composer install --ignore-platform-req=php --quiet
shell: bash
- run: composer test:coverage:xml
shell: bash
- uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: 203d856fbc3ebebe66cc94cccde4429973298c7fb919df64a1557850cc9c8345
with:
coverageLocations: coverage.xml:clover
- uses: actions/upload-artifact@v4
with:
name: coverage.xml
path: coverage.xml

test-mutant:
runs-on: ubuntu-latest
name: 'Mutant Test'
timeout-minutes: 5
continue-on-error: true
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
tools: composer:v2
- run: composer install --ignore-platform-req=php --quiet
shell: bash
- run: composer test:mutant
shell: bash
38 changes: 0 additions & 38 deletions .github/workflows/ci-unit-test-coverage.yml

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/ci-unit-test.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .github/workflows/ci-yml-lint.yml

This file was deleted.

12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased
### Changed
- Made library compatible with PHP 8.4, closes #8.
- Update dev dependencies, related to #8.
- Remove dev dependencies `roave/no-leaks` and `boesing/psalm-plugin-stringf` due to conflict with newer PHP versions,
related to #8.
Loading
Loading