From b309b0b7135ae03394c9343abdaf5dff86cc875a Mon Sep 17 00:00:00 2001 From: Al Ganiev Date: Sun, 21 Jan 2024 14:14:58 +1000 Subject: [PATCH] Cleanup readme and add workflow --- .github/workflows/test.yaml | 43 +++++++++++++++++++++++++++++++++++++ README.md | 4 ---- 2 files changed, 43 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..e29816d --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,43 @@ +# OS: Linux; Symfony: latest stable; PHP: all the commonly used versions supported by this bundle +name: "Tests" + +on: + pull_request: + push: + branches: + - 'main' + +env: + fail-fast: true + +jobs: + tests: + name: "PHP ${{ matrix.php-version }}" + runs-on: 'ubuntu-latest' + continue-on-error: false + strategy: + matrix: + php-version: ['7.4', '8.0', '8.1', '8.2', '8.3'] + steps: + - name: 'Checkout code' + uses: actions/checkout@v3 + + - name: 'Install PHP with extensions' + uses: shivammathur/setup-php@2.27.1 + with: + coverage: none + php-version: ${{ matrix.php-version }} + tools: composer:v2 + extensions: mbstring, intl + ini-values: date.timezone=UTC + + - name: 'Install project dependencies' + run: | + composer global config --no-plugins allow-plugins.symfony/flex true + composer global require --no-progress --no-scripts --no-plugins symfony/flex + composer update --no-interaction --prefer-dist --optimize-autoloader --prefer-stable + vendor/bin/simple-phpunit install + - name: 'Run tests' + env: + SYMFONY_DEPRECATIONS_HELPER: 'max[indirect]=10&max[total]=27' + run: vendor/bin/simple-phpunit -v \ No newline at end of file diff --git a/README.md b/README.md index 48f59a4..8a9917f 100644 --- a/README.md +++ b/README.md @@ -20,10 +20,6 @@ A lightweight lexical string parser for BBCode styled markup. ### Code Quality Assurance ### -| SLInsight | Travis CI | Gitter | Coverage | StyleCI | -| ----------|-----------|---------|----------|---------| -|[![SensioLabsInsight](https://insight.sensiolabs.com/projects/f355c58b-f9b6-482c-8d2d-d1bc8791c9e5/big.png)](https://insight.sensiolabs.com/projects/f355c58b-f9b6-482c-8d2d-d1bc8791c9e5) |[![Build Status](https://travis-ci.org/helios-ag/FMBbCodeBundle.png?branch=master)](https://travis-ci.org/helios-ag/FMBbCodeBundle)|[![Join the chat at https://gitter.im/helios-ag/FMBbCodeBundle](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/helios-ag/FMBbCodeBundle?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)|[![Coverage Status](https://coveralls.io/repos/helios-ag/FMBbCodeBundle/badge.svg?branch=master&service=github)](https://coveralls.io/github/helios-ag/FMBbCodeBundle?branch=master)|[![StyleCI](https://styleci.io/repos/2714013/shield)](https://styleci.io/repos/2714013)| - | Deps Status | Version | Downloads | | ----------|-----------|---------|