init
This commit is contained in:
commit
72a26edcff
22092 changed files with 2101903 additions and 0 deletions
85
lib/sc/.github/workflows/test.yaml
vendored
Normal file
85
lib/sc/.github/workflows/test.yaml
vendored
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
on: [pull_request]
|
||||
|
||||
jobs:
|
||||
phpunit:
|
||||
name: PHPUnit
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
php-version: ['8.1', '8.2', '8.3']
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: ${{ matrix.php-version }}
|
||||
coverage: none
|
||||
extensions: intl curl
|
||||
- run: composer update --no-interaction --no-progress --prefer-dist --ansi
|
||||
- run: composer test:unit
|
||||
|
||||
phpstan:
|
||||
name: PHPStan
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: '8.1'
|
||||
coverage: none
|
||||
env:
|
||||
COMPOSER_TOKEN: ${{ github.token }}
|
||||
update: true
|
||||
|
||||
- name: Install dependencies
|
||||
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader
|
||||
|
||||
- name: PHPStan tests
|
||||
run: composer test:types
|
||||
|
||||
rector:
|
||||
name: Rector
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: '8.1'
|
||||
coverage: none
|
||||
env:
|
||||
COMPOSER_TOKEN: ${{ github.token }}
|
||||
update: true
|
||||
|
||||
- name: Install dependencies
|
||||
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader
|
||||
|
||||
- name: PHPStan tests
|
||||
run: composer test:refactor
|
||||
|
||||
pint:
|
||||
name: Pint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: '8.1'
|
||||
coverage: none
|
||||
tools: cs2pr
|
||||
env:
|
||||
COMPOSER_TOKEN: ${{ github.token }}
|
||||
update: true
|
||||
|
||||
- name: Install dependencies
|
||||
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader
|
||||
|
||||
- name: Run Pint
|
||||
run: composer exec -- pint --test --format=checkstyle | cs2pr
|
||||
Loading…
Add table
Add a link
Reference in a new issue