-
Notifications
You must be signed in to change notification settings - Fork 1
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
0 parents
commit 6700dbf
Showing
12 changed files
with
894 additions
and
0 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,48 @@ | ||
- color: d73a4a | ||
description: Something isn't working | ||
name: Bug | ||
- color: 0075ca | ||
description: The changes require some documentation | ||
name: Doc needed | ||
- color: cfd3d7 | ||
description: This issue or pull request already exists | ||
name: Duplicate | ||
- color: "000000" | ||
description: "" | ||
name: DX | ||
- color: 6f00ff | ||
description: PR should be merged in a fast-forward way | ||
name: Fast-forward merge | ||
- color: b6e1fc | ||
description: New feature request | ||
name: Feature | ||
- color: 00bfff | ||
description: "" | ||
name: Improvement | ||
- color: e6e6e6 | ||
description: This doesn't seem right | ||
name: Invalid | ||
- color: 00ff7f | ||
description: "" | ||
name: QA approved | ||
- color: 9370db | ||
description: Further information is requested | ||
name: Question | ||
- color: adff2f | ||
description: "" | ||
name: Ready for MERGE | ||
- color: ff66cc | ||
description: "" | ||
name: Ready for QA | ||
- color: fff505 | ||
description: "" | ||
name: Ready for review | ||
- color: ffd700 | ||
description: "" | ||
name: Rebase required | ||
- color: ffffff | ||
description: This will not be worked on | ||
name: wontfix | ||
- color: fcc67b | ||
description: "" | ||
name: Work in progress |
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,16 @@ | ||
| Question | Answer | | ||
|--------------------------------|-------------------------------------------------------| | ||
| **JIRA issue** | [IBX-XXXXX](https://issues.ibexa.co/browse/IBX-XXXXX) | | ||
| **Type** | feature/bug/improvement | | ||
| **Target eZ Platform version** | `v4.x` - please update `x` accordingly | | ||
| **BC breaks** | yes/no | | ||
| **Doc needed** | yes/no | | ||
|
||
<!-- Replace this comment with Pull Request description --> | ||
|
||
#### Checklist: | ||
- [ ] Provided PR description. | ||
- [ ] Tested the solution manually. | ||
- [ ] Provided automated test coverage. | ||
- [ ] Checked that target branch is set correctly (master for features, the oldest supported for bugs). | ||
- [ ] Asked for a review (ping `@ibexa/engineering`). |
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,95 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- '[0-9]+.[0-9]+' | ||
pull_request: ~ | ||
|
||
jobs: | ||
cs-fix: | ||
if: github.event.repository.name != 'bundle-template-internal' | ||
name: Run code style check | ||
runs-on: "ubuntu-22.04" | ||
strategy: | ||
matrix: | ||
php: | ||
- '8.0' | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup PHP Action | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
coverage: none | ||
extensions: 'pdo_sqlite, gd' | ||
tools: cs2pr | ||
|
||
# Only for packages that are private - uncomment if needed | ||
# - name: Add composer keys for private packagist | ||
# run: | | ||
# composer config http-basic.updates.ibexa.co $SATIS_NETWORK_KEY $SATIS_NETWORK_TOKEN | ||
# composer config github-oauth.github.com $TRAVIS_GITHUB_TOKEN | ||
# env: | ||
# SATIS_NETWORK_KEY: ${{ secrets.SATIS_NETWORK_KEY }} | ||
# SATIS_NETWORK_TOKEN: ${{ secrets.SATIS_NETWORK_TOKEN }} | ||
# TRAVIS_GITHUB_TOKEN: ${{ secrets.TRAVIS_GITHUB_TOKEN }} | ||
|
||
- uses: ramsey/composer-install@v2 | ||
with: | ||
dependency-versions: "highest" | ||
|
||
- name: Run code style check | ||
run: composer run-script check-cs -- --format=checkstyle | cs2pr | ||
|
||
tests: | ||
if: github.event.repository.name != 'bundle-template-internal' | ||
name: Tests | ||
runs-on: "ubuntu-22.04" | ||
timeout-minutes: 10 | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: | ||
- '7.4' | ||
- '8.0' | ||
- '8.1' | ||
- '8.2' | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup PHP Action | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
coverage: none | ||
extensions: pdo_sqlite, gd | ||
tools: cs2pr | ||
|
||
# Only for packages that are private - uncomment if needed | ||
# - name: Add composer keys for private packagist | ||
# run: | | ||
# composer config http-basic.updates.ibexa.co $SATIS_NETWORK_KEY $SATIS_NETWORK_TOKEN | ||
# composer config github-oauth.github.com $TRAVIS_GITHUB_TOKEN | ||
# env: | ||
# SATIS_NETWORK_KEY: ${{ secrets.SATIS_NETWORK_KEY }} | ||
# SATIS_NETWORK_TOKEN: ${{ secrets.SATIS_NETWORK_TOKEN }} | ||
# TRAVIS_GITHUB_TOKEN: ${{ secrets.TRAVIS_GITHUB_TOKEN }} | ||
|
||
- uses: ramsey/composer-install@v2 | ||
with: | ||
dependency-versions: "highest" | ||
composer-options: "${{ matrix.composer_options }}" | ||
|
||
- name: Setup problem matchers for PHPUnit | ||
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | ||
|
||
- name: Run PHPStan analysis | ||
run: composer run-script phpstan | ||
|
||
- name: Run test suite | ||
run: composer run-script --timeout=600 test |
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,28 @@ | ||
name: Frontend build | ||
|
||
on: | ||
push: | ||
paths: | ||
- "**.js" | ||
- "**.scss" | ||
branches: | ||
- main | ||
- '[0-9]+.[0-9]+' | ||
pull_request: | ||
paths: | ||
- "**.js" | ||
- "**.scss" | ||
|
||
jobs: | ||
frontend-test: | ||
name: Frontend build test | ||
runs-on: "ubuntu-20.04" | ||
timeout-minutes: 5 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' | ||
- run: yarn install | ||
- run: yarn test |
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,10 @@ | ||
name: Assign Pull Request to maintainers | ||
|
||
on: | ||
pull_request_target: ~ | ||
|
||
jobs: | ||
assign: | ||
uses: ibexa/gh-workflows/.github/workflows/pr-assign.yml@main | ||
secrets: | ||
robot-token: ${{ secrets.EZROBOT_PAT }} |
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,14 @@ | ||
|
||
name: PR check | ||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
- reopened | ||
- edited | ||
|
||
jobs: | ||
test-base-branch: | ||
if: github.event.repository.name != 'bundle-template-internal' | ||
uses: ibexa/gh-workflows/.github/workflows/pr-check.yml@main |
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,13 @@ | ||
name: Call Automatic Changelog Generator for tag Workflow | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
- '!v*-alpha*' | ||
|
||
jobs: | ||
create_release_for_tag: | ||
uses: ibexa/gh-workflows/.github/workflows/release_bundle.yml@main | ||
secrets: | ||
JIRA_TOKEN: ${{ secrets.JIRA_TOKEN }} |
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,89 @@ | ||
name: Template Cleanup | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
|
||
template-cleanup: | ||
name: Template Cleanup | ||
runs-on: ubuntu-latest | ||
if: github.event.repository.name != 'bundle-template-internal' | ||
steps: | ||
|
||
# Check out current repository | ||
- name: Fetch Sources | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP Action | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 7.4 | ||
coverage: none | ||
extensions: pdo_sqlite, gd | ||
tools: cs2pr | ||
|
||
- name: Get bundle generator | ||
uses: actions/checkout@v2 | ||
with: | ||
token: ${{ secrets.EZROBOT_PAT }} | ||
repository: ibexa/bundle-generator | ||
path: .generator | ||
|
||
- name: "Install composer and dependencies" | ||
run: | | ||
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | ||
php composer-setup.php | ||
php composer.phar install -d .generator | ||
- name: "Apply repository labels" | ||
uses: micnncim/action-label-syncer@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# Cleanup project | ||
- name: Cleanup | ||
run: | | ||
export LC_CTYPE=C | ||
export LANG=C | ||
# Prepare variables | ||
NAME="${GITHUB_REPOSITORY##*/}" | ||
ACTOR=$(echo $GITHUB_ACTOR | tr '[:upper:]' '[:lower:]') | ||
SAFE_NAME=$(echo $NAME | sed 's/[^a-zA-Z0-9]//g' | tr '[:upper:]' '[:lower:]') | ||
SAFE_ACTOR=$(echo $ACTOR | sed 's/[^a-zA-Z0-9]//g' | tr '[:upper:]' '[:lower:]') | ||
# Converts repository name to UpperCamelCase (if separated by "-") | ||
_temp=(${NAME//-/ }) | ||
CC_NAME=$(printf %s "${_temp[@]^}") | ||
# Remove lines marked with #REMOVE-ON-CLEANUP# | ||
find . -type f -exec sed -i '/#REMOVE-ON-CLEANUP#/d' {} + | ||
# Run generator | ||
echo Running generator with: php .generator/bin/ibexa-bundle-generator $SAFE_NAME $SAFE_NAME-dir --vendor-name=ibexa --vendor-namespace=Ibexa --bundle-name=$CC_NAME --skeleton-name=ibexa-ee | ||
php .generator/bin/ibexa-bundle-generator $SAFE_NAME $SAFE_NAME-dir --vendor-name=ibexa --vendor-namespace=Ibexa --bundle-name=$CC_NAME --skeleton-name=ibexa-ee | ||
# Move content | ||
cp -R $SAFE_NAME-dir/* . | ||
# Cleanup | ||
rm -rf \ | ||
.github/readme \ | ||
.github/template-cleanup \ | ||
.github/workflows/template-cleanup.yml \ | ||
.generator composer-setup.php composer.phar \ | ||
$SAFE_NAME-dir | ||
# Commit modified files | ||
- name: Commit files | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git add . | ||
git commit -m "Template cleanup" | ||
# Push changes | ||
- name: Push changes | ||
uses: ad-m/github-push-action@master | ||
with: | ||
branch: main | ||
github_token: ${{ secrets.GITHUB_TOKEN }} |
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,20 @@ | ||
Copyright (C) 1999-2021 Ibexa AS (formerly eZ Systems AS). All rights reserved. | ||
|
||
This source code is available separately under the following licenses: | ||
|
||
A - Ibexa Business Use License Agreement (Ibexa BUL), | ||
version 2.4 or later versions (as license terms may be updated from time to time) | ||
Ibexa BUL is granted by having a valid Ibexa DXP (formerly eZ Platform Enterprise) subscription, | ||
as described at: https://www.ibexa.co/product | ||
For the full Ibexa BUL license text, please see: | ||
- LICENSE-bul file placed in the root of this source code, or | ||
- https://www.ibexa.co/software-information/licenses-and-agreements (latest version applies) | ||
|
||
AND | ||
|
||
B - Ibexa Trial and Test License Agreement (Ibexa TTL), | ||
version 2.2 or later versions (as license terms may be updated from time to time) | ||
Trial can be granted by Ibexa, reach out to Ibexa AS for evaluation access: https://www.ibexa.co/about-ibexa/contact-us | ||
For the full Ibexa TTL license text, please see: | ||
- LICENSE file placed in the root of this source code, or | ||
- https://www.ibexa.co/software-information/licenses-and-agreements (latest version applies) |
Oops, something went wrong.