Feature/36572 GitHub action #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |