Skip to content

MNT Update composer config #4

MNT Update composer config

MNT Update composer config #4

Workflow file for this run

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