Skip to content

Commit e38a83c

Browse files
authored
Feature/GitHub actions test stacks (#17)
* 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
1 parent 02e880a commit e38a83c

59 files changed

Lines changed: 2959 additions & 912 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build.yml

Lines changed: 1347 additions & 18 deletions
Large diffs are not rendered by default.

.github/workflows/package.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Kloud Package Build
2+
on:
3+
push:
4+
branches: [ master ]
5+
pull_request:
6+
branches: [ master ]
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Validate composer.json and composer.lock
13+
run: composer validate
14+
- name: Cache Composer packages
15+
id: composer-cache
16+
uses: actions/cache@v2
17+
with:
18+
path: vendor
19+
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
20+
restore-keys: |
21+
${{ runner.os }}-php-
22+
- name: Install dependencies
23+
if: steps.composer-cache.outputs.cache-hit != 'true'
24+
run: composer install --prefer-dist --no-progress --no-suggest --no-dev
25+
- name: Build the Phar package
26+
uses: gplanchat/github-action-box@master
27+
env:
28+
BOX_SECRET_KEY: ${{secrets.BOX_SECRET_KEY}}
29+
BOX_SECRET_KEY_PASSPHRASE: ${{secrets.BOX_SECRET_KEY_PASSPHRASE}}
30+
- uses: actions/upload-artifact@v2
31+
with:
32+
name: kloud.phar
33+
path: build/kloud.phar
34+
- uses: actions/upload-artifact@v2
35+
with:
36+
name: kloud.phar.pubkey
37+
path: build/kloud.phar.pubkey
38+
# - name: Build the Docker image
39+
# run: docker build build/ --file Dockerfile --tag my-image-name:$(date +%s)

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
name: Kloud Test
2-
on: [push, pull_request]
1+
name: Kloud Run Tests
2+
on: [push]
33

44
jobs:
55
phpspec:
@@ -41,4 +41,4 @@ jobs:
4141
- name: Run PHPUnit test suite
4242
run: composer run-script phpunit
4343
env:
44-
COMPOSER_PROCESS_TIMEOUT: 900
44+
COMPOSER_PROCESS_TIMEOUT: 1800

0 commit comments

Comments
 (0)