Skip to content

maintainers.txt updated #71

maintainers.txt updated

maintainers.txt updated #71

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
run:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest, ubuntu-20.04]
php-versions: ['7.1', '7.2', '7.3', '7.4']
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, intl
ini-values: post_max_size=256M, short_open_tag=On
- name: Testing PHP version
run: |
php -v
php -r "if(strpos(phpversion(), '${{ matrix.php-versions }}') === false) {throw new Exception('Wrong PHP version Installed');}"
- name: Install dependencies (standalone)
env:
COMPOSER: composer-standalone.json
uses: php-actions/composer@v6
with:
version: 1
memory_limit: -1
php_version: ${{ matrix.php-versions }}
- name: Run tests (standalone)
env:
PHPUNIT_CONFIG: phpunit-standalone.xml.dist
run: |
./project_tests.sh
- name: Install dependencies (library)
uses: php-actions/composer@v6
with:
version: 1
php_version: ${{ matrix.php-versions }}
- name: Run tests (library)
run: |
./project_tests.sh
- name: Check Docker build
run: |
docker build . -t civi-contacts:latest
docker run --rm -i -e CIVI_SITE_KEY="" -e CIVI_API_KEY="" civi-contacts:latest ./console