From 4957a3937a4142fbe0e122559bc4778a05fcd65d Mon Sep 17 00:00:00 2001 From: Ibrahim BinAlshikh Date: Sun, 3 Dec 2023 21:30:52 +0300 Subject: [PATCH] Added PHP 8.3 --- .github/workflows/php83.yml | 68 +++++++++++++++++++++++++++++++++++++ README.md | 22 ++++++------ 2 files changed, 79 insertions(+), 11 deletions(-) create mode 100644 .github/workflows/php83.yml diff --git a/.github/workflows/php83.yml b/.github/workflows/php83.yml new file mode 100644 index 0000000..b4d8217 --- /dev/null +++ b/.github/workflows/php83.yml @@ -0,0 +1,68 @@ +name: Build PHP 8.3 + +on: + push: + branches: [ main, dev ] + pull_request: + branches: [ main ] + +jobs: + test: + runs-on: ${{ matrix.os }} + services: + sql.data: + image: mcr.microsoft.com/mssql/server:2019-latest + env: + SA_PASSWORD: 1234567890@Eu + ACCEPT_EULA: Y + MSSQL_PID: Express + ports: + - "1433:1433" + strategy: + fail-fast: true + matrix: + os: [ ubuntu-latest ] + php: [8.3] + + name: PHP${{matrix.php}} - ${{matrix.os}} + + steps: + - name: Clone Repo + uses: actions/checkout@v1 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + extensions: mysqli, mbstring, sqlsrv + tools: phpunit:9.5.20, composer + + - name: Shutdown Ubuntu MySQL + run: sudo service mysql stop + + - name: Set up MySQL + uses: mirromutth/mysql-action@v1.1 + with: + mysql version: '5.7' + mysql database: 'testing_db' + mysql root password: 123456 + mysql user: 'root' + mysql password: 123456 + + - name: Wait for MySQL + run: | + while ! mysqladmin ping --host=127.0.0.1 --password=123456 --silent; do + sleep 1 + done + + - name: Setup MSSQL + run: sqlcmd -S localhost -U SA -P 1234567890@Eu -Q 'create database testing_db' + + - name: Install Dependencies + run: composer install --prefer-dist --no-interaction --no-dev + + - name: Execute Tests + run: phpunit + + - name: CodeCov + uses: codecov/codecov-action@v1 \ No newline at end of file diff --git a/README.md b/README.md index 3841e3b..4491a59 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,8 @@ Class library that can help in writing command line based applications with mini

- - + + @@ -42,15 +42,15 @@ Class library that can help in writing command line based applications with mini ## Supported PHP Versions | Build Status | |:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:| -| | -| | -| | -| | -| | -| | -| | -| | - +| | +| | +| | +| | +| | +| | +| | +| | +| | ## Features