Improve performance of AbstractSqlParser class methods
#732
Workflow file for this run
This file contains hidden or 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
| on: | |
| pull_request: | |
| paths: | |
| - 'src/**' | |
| - 'tests/**' | |
| - '.github/workflows/db-mssql-2017.yml' | |
| - 'composer.json' | |
| - 'phpunit.xml.dist' | |
| push: | |
| branches: ['master'] | |
| paths: | |
| - 'src/**' | |
| - 'tests/**' | |
| - '.github/workflows/db-mssql-2017.yml' | |
| - 'composer.json' | |
| - 'phpunit.xml.dist' | |
| name: db-mssql-2017 | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| tests: | |
| name: MSSQL 2017 (Windows) | |
| env: | |
| COMPOSER_ROOT_VERSION: 2.0.0 | |
| PHP_VERSION: 8.5 | |
| EXTENSIONS: pdo, pdo_sqlsrv | |
| runs-on: windows-latest | |
| steps: | |
| - name: Install SQL Server on Windows. | |
| run: choco install sql-server-express --version=2017.20190916 -y --no-progress --ia="'/Q /SUPPRESSPRIVACYSTATEMENTNOTICE /IACCEPTSQLSERVERLICENSETERMS /ACTION=install /INSTANCEID=MSSQLSERVER /INSTANCENAME=MSSQLSERVER /UPDATEENABLED=FALSE /SECURITYMODE=SQL /TCPENABLED=1 /SAPWD=YourStrong!Passw0rd'" | |
| - name: Create database. | |
| run: sqlcmd -S localhost -U SA -P 'YourStrong!Passw0rd' -Q 'CREATE DATABASE yiitest' | |
| - name: Checkout. | |
| uses: actions/checkout@v4 | |
| - name: Install PHP with extensions. | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ env.PHP_VERSION }} | |
| extensions: ${{ env.EXTENSIONS }} | |
| ini-values: date.timezone='UTC' | |
| coverage: pcov | |
| env: | |
| update: true | |
| - name: Install db-mssql. | |
| uses: yiisoft/actions/install-packages@master | |
| with: | |
| composer-root-version: 2.0.0 | |
| packages: >- | |
| ['db-mssql'] | |
| - name: Run mssql tests with phpunit and code coverage. | |
| run: vendor/bin/phpunit --testsuite Mssql --coverage-clover=coverage.xml --colors=always --display-warnings --display-deprecations | |