Skip to content

Added ci.yml

Added ci.yml #2

Workflow file for this run

name: Build and Test
on:
push:
branches:
- main
pull_request:
branches:
- master
- php-workflows-poc
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
- name: Install dependencies
run: composer install
- name: Compile build
run: find . -name "*.php" | xargs -n 1 php -l || exit 1
- name: Run tests
run: ./vendor/bin/phpunit