Override the default hashing cost in BcryptTest #19
This file contains 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
name: Twine Test Suite | |
on: [push] | |
jobs: | |
coding-standards: | |
name: Coding Standards | |
runs-on: 'ubuntu-latest' | |
env: | |
PHP_CS_FIXER_IGNORE_ENV: 1 | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.4' | |
- name: Install PHP Dependencies | |
run: composer install --no-interaction --no-progress --no-scripts --prefer-dist | |
- name: Verify Coding Standards | |
run: vendor/bin/php-cs-fixer fix --diff --dry-run | |
static-analysis: | |
name: Static Analysis | |
runs-on: 'ubuntu-latest' | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.4' | |
- name: Install PHP Dependencies | |
run: composer install --no-interaction --no-progress --no-scripts --prefer-dist | |
- name: Run Static Analysis | |
run: vendor/bin/phpstan analyze | |
tests: | |
name: Tests | |
runs-on: 'ubuntu-latest' | |
strategy: | |
matrix: | |
php-versions: ['8.2', '8.3', '8.4'] | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
coverage: xdebug | |
- name: Install PHP Dependencies | |
run: composer install --no-interaction --no-progress --no-scripts --prefer-dist | |
- name: Run Tests | |
run: vendor/bin/phpunit --coverage-text |