MNT Update composer config #4
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: CI | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
# Every Tuesday at 3:00pm UTC | |
schedule: | |
- cron: '0 14 * * 3' | |
jobs: | |
build: | |
name: CI | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e # v2.4.2 | |
- name: Install PHP | |
uses: shivammathur/setup-php@3eda58347216592f618bb1dff277810b6698e4ca # v2.19.1 | |
with: | |
php-version: 8.1 | |
tools: composer:v2 | |
- name: Composer install | |
run: | | |
composer config allow-plugins.composer/installers true | |
composer config allow-plugins.silverstripe/recipe-plugin true | |
composer config allow-plugins.silverstripe/vendor-plugin true | |
composer install | |
- name: PHPUnit | |
run: vendor/bin/phpunit | |
- name: PHP linting | |
run: vendor/bin/phpcs |