-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
345 additions
and
379 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
github: [plopix] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
|
||
lint: | ||
name: Coding Standard | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@master | ||
with: | ||
php-version: 7.3 | ||
id: php | ||
- name: Install dependencies | ||
run: composer install --prefer-dist --no-progress --no-suggest --no-interaction | ||
- name: Check Sources | ||
run: php vendor/bin/phpcs --standard=.cs/cs_ruleset.xml --extensions=php src/ | ||
- name: Check Tests | ||
run: php vendor/bin/phpcs --standard=.cs/cs_ruleset.xml --extensions=php src/ | ||
|
||
tests: | ||
name: Tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php: [7.2, 7.3] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@master | ||
with: | ||
php-version: ${{ matrix.php }} | ||
id: php | ||
- name: Validate composer.json and composer.lock | ||
run: composer validate | ||
- name: Install dependencies | ||
run: composer install --prefer-dist --no-progress --no-suggest --no-interaction | ||
- name: Show Versions | ||
run: composer info -i | ||
- name: PHP Unit | ||
run: php vendor/bin/phpunit -c tests/ --exclude-group behat | ||
- name: Behat | ||
run: php vendor/behat/behat/bin/behat -c tests/behat.yml | ||
|
||
|
||
usage: | ||
name: Usage | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php: [7.2, 7.3] | ||
ezversion: [1.13.*, 2.*] | ||
collection: [collection-1x.json, collection-2x.json] | ||
exclude: | ||
- ezversion: 1.13.* | ||
collection: collection-2x.json | ||
- ezversion: 2.* | ||
collection: collection-1x.json | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@master | ||
with: | ||
php-version: ${{ matrix.php }} | ||
id: php | ||
- name: Install dependencies | ||
run: composer install --prefer-dist --no-progress --no-suggest --no-interaction | ||
- name: Initialization | ||
run: php bin/ez-prod init ezsystems/ezplatform ${{ matrix.ezversion }} --no-interaction -vvv | ||
- name: Status Info | ||
run: php bin/ez-prod ps | ||
- name: Verification using Postman | ||
run: docker run --net=host -v $(pwd)/tests/postman:/etc/newman -t postman/newman_ubuntu1404 run ${{ matrix.collection }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
name: Upload Phar | ||
|
||
jobs: | ||
build: | ||
name: Upload Phar | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Install PROD dependencies ONLY | ||
run: composer install --prefer-dist --no-progress --no-suggest --no-interaction --no-dev | ||
- name: Build project | ||
env: | ||
EZ_LAUNCHPAD_PHAR_PRIVATE_KEY: ${{ secrets.EZ_LAUNCHPAD_PHAR_PRIVATE_KEY }} | ||
run: | | ||
echo "${EZ_LAUNCHPAD_PHAR_PRIVATE_KEY}" > ezlaunchpad-private.pem | ||
ulimit -Sn 4096 | ||
curl -LSs https://box-project.github.io/box2/installer.php | php | ||
chmod 755 box.phar | ||
php -d "phar.readonly=false" ./box.phar build -vv | ||
rm ezlaunchpad-private.pem | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1.0.0 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
draft: false | ||
prerelease: false | ||
|
||
- name: Upload Release Asset | ||
id: upload-release-asset | ||
uses: actions/upload-release-asset@v1.0.1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./ez.phar | ||
asset_name: ez.phar | ||
asset_content_type: application/octet-stream |
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
This file was deleted.
Oops, something went wrong.
Binary file not shown.
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
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
Oops, something went wrong.