Skip to content

Commit

Permalink
Feature/GitHub actions test stacks (#17)
Browse files Browse the repository at this point in the history
* Added Github action to run image:build command
* Fixed Composer version to <2.0
* Added 4 build targets for OroCommerce 4.1 with PHP 7.4
* Added 4 build targets for OroCommerce 4.1 with PHP 7.3
* Added 4 build targets for OroCommerce 3.1 with PHP 7.2
* Added 4 build targets for OroCommerce 3.1 with PHP 7.1
* Added 4 build targets for OroCRM 4.1 with PHP 7.4
* Added 4 build targets for OroCRM 4.1 with PHP 7.3
* Added 4 build targets for OroCRM 3.1 with PHP 7.2
* Added 4 build targets for OroCRM 3.1 with PHP 7.1
* Changed the minimal PHP versions for Oro 4.2
* Changed the docker login method in the Github actions
* Changed the docker login method in the Github actions
* Added Marello and Middleware image builds in the Github Actions
* Reorganized docs
* Removed PHP 7.3 fixtures for Oro 4.2, as this combination has no editor support
* Updated timeout in the PHPUnit test runner
* Updated test runner trigger condition
* Reactivated Blackfire, Xdebug and Elastic Stack fixtures
  • Loading branch information
gplanchat authored Nov 20, 2020
1 parent 02e880a commit e38a83c
Show file tree
Hide file tree
Showing 59 changed files with 2,959 additions and 912 deletions.
1,365 changes: 1,347 additions & 18 deletions .github/workflows/build.yml

Large diffs are not rendered by default.

39 changes: 39 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Kloud Package Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Validate composer.json and composer.lock
run: composer validate
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --prefer-dist --no-progress --no-suggest --no-dev
- name: Build the Phar package
uses: gplanchat/github-action-box@master
env:
BOX_SECRET_KEY: ${{secrets.BOX_SECRET_KEY}}
BOX_SECRET_KEY_PASSPHRASE: ${{secrets.BOX_SECRET_KEY_PASSPHRASE}}
- uses: actions/upload-artifact@v2
with:
name: kloud.phar
path: build/kloud.phar
- uses: actions/upload-artifact@v2
with:
name: kloud.phar.pubkey
path: build/kloud.phar.pubkey
# - name: Build the Docker image
# run: docker build build/ --file Dockerfile --tag my-image-name:$(date +%s)
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Kloud Test
on: [push, pull_request]
name: Kloud Run Tests
on: [push]

jobs:
phpspec:
Expand Down Expand Up @@ -41,4 +41,4 @@ jobs:
- name: Run PHPUnit test suite
run: composer run-script phpunit
env:
COMPOSER_PROCESS_TIMEOUT: 900
COMPOSER_PROCESS_TIMEOUT: 1800
Loading

0 comments on commit e38a83c

Please sign in to comment.