Skip to content

Enforce 16-byte minimum credential ID length at registration #96

Enforce 16-byte minimum credential ID length at registration

Enforce 16-byte minimum credential ID length at registration #96

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
permissions:
contents: read
jobs:
tests:
name: Tests & coverage (PHP ${{ matrix.php-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version:
- '8.4'
- '8.5'
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: pcov
- name: Install dependencies
run: composer install --no-interaction --no-progress
# Runs composer normalize --dry-run (needs the installed plugin, hence after install)
# and composer validate --strict.
- name: Validate composer.json
run: composer check:composer
# Audit third-party runtime dependencies only. This library has none today, and an empty
# audit set is an error on some composer versions, so gate on there being something to audit.
- name: Audit runtime dependencies
run: |
if [ -n "$(composer show --locked --no-dev --name-only)" ]; then
composer audit --no-dev --locked
else
echo "No third-party runtime dependencies to audit."
fi
- name: PHPUnit (with coverage)
run: vendor/bin/phpunit --coverage-clover=clover.xml
- name: Coverage guard
run: vendor/bin/coverage-guard check clover.xml
phpstan:
name: PHPStan
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
coverage: none
- name: Install dependencies
run: composer install --no-interaction --no-progress
- name: PHPStan
run: vendor/bin/phpstan analyse --no-progress
coding-standard:
name: Coding standard
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
coverage: none
- name: Install dependencies
run: composer install --no-interaction --no-progress
- name: Coding standard
run: composer check:cs