Skip to content

Commit e9203a4

Browse files
authored
Initial commit
0 parents  commit e9203a4

File tree

12 files changed

+888
-0
lines changed

12 files changed

+888
-0
lines changed

.github/labels.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
- color: d73a4a
2+
description: Something isn't working
3+
name: Bug
4+
- color: 0075ca
5+
description: The changes require some documentation
6+
name: Doc needed
7+
- color: cfd3d7
8+
description: This issue or pull request already exists
9+
name: Duplicate
10+
- color: "000000"
11+
description: ""
12+
name: DX
13+
- color: 6f00ff
14+
description: PR should be merged in a fast-forward way
15+
name: Fast-forward merge
16+
- color: b6e1fc
17+
description: New feature request
18+
name: Feature
19+
- color: 00bfff
20+
description: ""
21+
name: Improvement
22+
- color: e6e6e6
23+
description: This doesn't seem right
24+
name: Invalid
25+
- color: 00ff7f
26+
description: ""
27+
name: QA approved
28+
- color: 9370db
29+
description: Further information is requested
30+
name: Question
31+
- color: adff2f
32+
description: ""
33+
name: Ready for MERGE
34+
- color: ff66cc
35+
description: ""
36+
name: Ready for QA
37+
- color: fff505
38+
description: ""
39+
name: Ready for review
40+
- color: ffd700
41+
description: ""
42+
name: Rebase required
43+
- color: ffffff
44+
description: This will not be worked on
45+
name: wontfix
46+
- color: fcc67b
47+
description: ""
48+
name: Work in progress

.github/workflows/ci.yaml

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- '[0-9]+.[0-9]+'
8+
pull_request: ~
9+
10+
jobs:
11+
cs-fix:
12+
if: github.event.repository.name != 'bundle-template-internal'
13+
name: Run code style check
14+
runs-on: "ubuntu-22.04"
15+
strategy:
16+
matrix:
17+
php:
18+
- '8.0'
19+
steps:
20+
- uses: actions/checkout@v3
21+
22+
- name: Setup PHP Action
23+
uses: shivammathur/setup-php@v2
24+
with:
25+
php-version: ${{ matrix.php }}
26+
coverage: none
27+
extensions: 'pdo_sqlite, gd'
28+
tools: cs2pr
29+
30+
# Only for packages that are private - uncomment if needed
31+
# - name: Add composer keys for private packagist
32+
# run: |
33+
# composer config http-basic.updates.ibexa.co $SATIS_NETWORK_KEY $SATIS_NETWORK_TOKEN
34+
# composer config github-oauth.github.com $TRAVIS_GITHUB_TOKEN
35+
# env:
36+
# SATIS_NETWORK_KEY: ${{ secrets.SATIS_NETWORK_KEY }}
37+
# SATIS_NETWORK_TOKEN: ${{ secrets.SATIS_NETWORK_TOKEN }}
38+
# TRAVIS_GITHUB_TOKEN: ${{ secrets.TRAVIS_GITHUB_TOKEN }}
39+
40+
- uses: ramsey/composer-install@v2
41+
with:
42+
dependency-versions: "highest"
43+
44+
- name: Run code style check
45+
run: composer run-script check-cs -- --format=checkstyle | cs2pr
46+
47+
tests:
48+
if: github.event.repository.name != 'bundle-template-internal'
49+
name: Tests
50+
runs-on: "ubuntu-22.04"
51+
timeout-minutes: 10
52+
53+
strategy:
54+
fail-fast: false
55+
matrix:
56+
php:
57+
- '7.4'
58+
- '8.0'
59+
- '8.1'
60+
- '8.2'
61+
62+
steps:
63+
- uses: actions/checkout@v3
64+
65+
- name: Setup PHP Action
66+
uses: shivammathur/setup-php@v2
67+
with:
68+
php-version: ${{ matrix.php }}
69+
coverage: none
70+
extensions: pdo_sqlite, gd
71+
tools: cs2pr
72+
73+
# Only for packages that are private - uncomment if needed
74+
# - name: Add composer keys for private packagist
75+
# run: |
76+
# composer config http-basic.updates.ibexa.co $SATIS_NETWORK_KEY $SATIS_NETWORK_TOKEN
77+
# composer config github-oauth.github.com $TRAVIS_GITHUB_TOKEN
78+
# env:
79+
# SATIS_NETWORK_KEY: ${{ secrets.SATIS_NETWORK_KEY }}
80+
# SATIS_NETWORK_TOKEN: ${{ secrets.SATIS_NETWORK_TOKEN }}
81+
# TRAVIS_GITHUB_TOKEN: ${{ secrets.TRAVIS_GITHUB_TOKEN }}
82+
83+
- uses: ramsey/composer-install@v2
84+
with:
85+
dependency-versions: "highest"
86+
composer-options: "${{ matrix.composer_options }}"
87+
88+
- name: Setup problem matchers for PHPUnit
89+
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
90+
91+
- name: Run PHPStan analysis
92+
run: composer run-script phpstan
93+
94+
- name: Run test suite
95+
run: composer run-script --timeout=600 test

.github/workflows/frontend-ci.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Frontend build
2+
3+
on:
4+
push:
5+
paths:
6+
- "**.js"
7+
- "**.scss"
8+
branches:
9+
- main
10+
- '[0-9]+.[0-9]+'
11+
pull_request:
12+
paths:
13+
- "**.js"
14+
- "**.scss"
15+
16+
jobs:
17+
frontend-test:
18+
name: Frontend build test
19+
runs-on: "ubuntu-20.04"
20+
timeout-minutes: 5
21+
22+
steps:
23+
- uses: actions/checkout@v2
24+
- uses: actions/setup-node@v2
25+
with:
26+
node-version: '14'
27+
- run: yarn install
28+
- run: yarn test

.github/workflows/pr-assign.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Assign Pull Request to maintainers
2+
3+
on:
4+
pull_request_target: ~
5+
6+
jobs:
7+
assign:
8+
uses: ibexa/gh-workflows/.github/workflows/pr-assign.yml@main
9+
secrets:
10+
robot-token: ${{ secrets.EZROBOT_PAT }}

.github/workflows/pr-check.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
name: PR check
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- synchronize
8+
- reopened
9+
- edited
10+
11+
jobs:
12+
test-base-branch:
13+
if: github.event.repository.name != 'bundle-template-internal'
14+
uses: ibexa/gh-workflows/.github/workflows/pr-check.yml@main

.github/workflows/pr-labels.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Label reactor caller
2+
3+
on:
4+
pull_request:
5+
types: [labeled, unlabeled]
6+
7+
jobs:
8+
caller:
9+
uses: ibexa/gh-workflows/.github/workflows/pr-label-reactor.yml@main
10+
secrets: inherit

.github/workflows/release.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Call Automatic Changelog Generator for tag Workflow
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
- '!v*-alpha*'
8+
9+
jobs:
10+
create_release_for_tag:
11+
uses: ibexa/gh-workflows/.github/workflows/release_bundle.yml@main
12+
secrets:
13+
JIRA_TOKEN: ${{ secrets.JIRA_TOKEN }}
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
name: Template Cleanup
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
jobs:
8+
9+
template-cleanup:
10+
name: Template Cleanup
11+
runs-on: ubuntu-latest
12+
if: github.event.repository.name != 'bundle-template-internal'
13+
steps:
14+
15+
# Check out current repository
16+
- name: Fetch Sources
17+
uses: actions/checkout@v2
18+
19+
- name: Setup PHP Action
20+
uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: 8.3
23+
coverage: none
24+
extensions: pdo_sqlite, gd
25+
tools: cs2pr
26+
27+
- name: Get bundle generator
28+
uses: actions/checkout@v2
29+
with:
30+
token: ${{ secrets.EZROBOT_PAT }}
31+
repository: ibexa/bundle-generator
32+
path: .generator
33+
34+
- name: "Install composer and dependencies"
35+
run: |
36+
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
37+
php composer-setup.php
38+
php composer.phar install -d .generator
39+
40+
- name: "Apply repository labels"
41+
uses: micnncim/action-label-syncer@v1
42+
env:
43+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
45+
# Cleanup project
46+
- name: Cleanup
47+
run: |
48+
export LC_CTYPE=C
49+
export LANG=C
50+
# Prepare variables
51+
NAME="${GITHUB_REPOSITORY##*/}"
52+
ACTOR=$(echo $GITHUB_ACTOR | tr '[:upper:]' '[:lower:]')
53+
SAFE_NAME=$(echo $NAME | sed 's/[^a-zA-Z0-9]//g' | tr '[:upper:]' '[:lower:]')
54+
SAFE_ACTOR=$(echo $ACTOR | sed 's/[^a-zA-Z0-9]//g' | tr '[:upper:]' '[:lower:]')
55+
56+
# Converts repository name to UpperCamelCase (if separated by "-")
57+
_temp=(${NAME//-/ })
58+
CC_NAME=$(printf %s "${_temp[@]^}")
59+
60+
# Remove lines marked with #REMOVE-ON-CLEANUP#
61+
find . -type f -exec sed -i '/#REMOVE-ON-CLEANUP#/d' {} +
62+
63+
# Run generator
64+
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
65+
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
66+
67+
# Move content
68+
cp -R $SAFE_NAME-dir/* .
69+
70+
# Cleanup
71+
rm -rf \
72+
.github/readme \
73+
.github/template-cleanup \
74+
.github/workflows/template-cleanup.yml \
75+
.generator composer-setup.php composer.phar \
76+
$SAFE_NAME-dir
77+
# Commit modified files
78+
- name: Commit files
79+
run: |
80+
git config --local user.email "action@github.com"
81+
git config --local user.name "GitHub Action"
82+
git add .
83+
git commit -m "Template cleanup"
84+
# Push changes
85+
- name: Push changes
86+
uses: ad-m/github-push-action@master
87+
with:
88+
branch: main
89+
github_token: ${{ secrets.GITHUB_TOKEN }}

COPYRIGHT

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright (C) 1999-2025 Ibexa AS (formerly eZ Systems AS). All rights reserved.
2+
3+
This source code is available separately under the following licenses:
4+
5+
A - Ibexa Business Use License Agreement (Ibexa BUL),
6+
version 2.4 or later versions (as license terms may be updated from time to time)
7+
Ibexa BUL is granted by having a valid Ibexa DXP (formerly eZ Platform Enterprise) subscription,
8+
as described at: https://www.ibexa.co/product
9+
For the full Ibexa BUL license text, please see:
10+
- LICENSE-bul file placed in the root of this source code, or
11+
- https://www.ibexa.co/software-information/licenses-and-agreements (latest version applies)
12+
13+
AND
14+
15+
B - Ibexa Trial and Test License Agreement (Ibexa TTL),
16+
version 2.2 or later versions (as license terms may be updated from time to time)
17+
Trial can be granted by Ibexa, reach out to Ibexa AS for evaluation access: https://www.ibexa.co/about-ibexa/contact-us
18+
For the full Ibexa TTL license text, please see:
19+
- LICENSE file placed in the root of this source code, or
20+
- https://www.ibexa.co/software-information/licenses-and-agreements (latest version applies)

0 commit comments

Comments
 (0)