Skip to content

Feature/36572 GitHub action #1

Feature/36572 GitHub action

Feature/36572 GitHub action #1

Workflow file for this run

name: PHP CI
on:
push:
branches:
- master
- develop
pull_request:
branches:
- '**'
jobs:
build:
runs-on: ubuntu-latest
services:
php:
image: php:7.4.33-cli
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies
run: |
docker-php-ext-install calendar
apt-get update && apt-get install -y unzip libxml2-dev
docker-php-ext-install soap
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
composer install
env:
COMPOSER_CACHE_DIR: ${{ github.workspace }}/.composer/cache
- name: Run tests
run: |
src/modules/mo/mo_dhl/vendor/bin/phpunit -c tests/phpunit.xml tests