Skip to content

Add GitHub Actions workflow #1

Add GitHub Actions workflow

Add GitHub Actions workflow #1

Workflow file for this run

name: PHP Workflow
on:
push:
branches: [ "main", "development" ]
pull_request:
branches: [ "main", "development" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e
with:
php-version: '7.4'
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Install Dependencies
run: composer install --prefer-dist --no-progress
- name: Run Tests
run: composer run-script test
- name: Static Analyse
run: composer run-script analyse