Skip to content

Commit

Permalink
Merge pull request #4 from mediaopt/feature/36572-github-action
Browse files Browse the repository at this point in the history
Feature/36572 GitHub action
  • Loading branch information
mbe1987 authored Jun 7, 2024
2 parents 47ab122 + 93121ac commit ef2228a
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 47 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: PHP CI

on:
push:
branches:
- master
- develop
pull_request:
branches:
- '**'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
extensions: calendar, soap
tools: composer

- name: Install dependencies
run: |
apt-get update && apt-get install -y unzip libxml2-dev
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
47 changes: 0 additions & 47 deletions bitbucket-pipelines.yml

This file was deleted.

0 comments on commit ef2228a

Please sign in to comment.