Skip to content

Commit f65c108

Browse files
committed
Added bundle structure
0 parents  commit f65c108

38 files changed

+1106
-0
lines changed

.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "eslint-config-ibexa/eslint"
3+
}

.github/workflows/backend-ci.yaml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
name: Backend build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- '[0-9]+.[0-9]+'
8+
pull_request: ~
9+
10+
jobs:
11+
cs-fix:
12+
name: Run code style check
13+
runs-on: "ubuntu-22.04"
14+
strategy:
15+
matrix:
16+
php:
17+
- '8.1'
18+
steps:
19+
- uses: actions/checkout@v3
20+
21+
- name: Setup PHP Action
22+
uses: shivammathur/setup-php@v2
23+
with:
24+
php-version: ${{ matrix.php }}
25+
coverage: none
26+
extensions: 'pdo_sqlite, gd'
27+
tools: cs2pr
28+
29+
- uses: ramsey/composer-install@v2
30+
with:
31+
dependency-versions: "highest"
32+
33+
- name: Run code style check
34+
run: composer run-script check-cs -- --format=checkstyle | cs2pr
35+
36+
deptrac:
37+
name: Deptrac
38+
runs-on: ubuntu-latest
39+
steps:
40+
- uses: actions/checkout@v3
41+
- name: Deptrac
42+
uses: smoench/deptrac-action@master
43+
44+
tests:
45+
name: Tests
46+
runs-on: "ubuntu-22.04"
47+
timeout-minutes: 10
48+
49+
strategy:
50+
fail-fast: false
51+
matrix:
52+
php:
53+
- '7.4'
54+
- '8.1'
55+
- '8.2'
56+
57+
steps:
58+
- uses: actions/checkout@v2
59+
60+
- name: Setup PHP Action
61+
uses: shivammathur/setup-php@v2
62+
with:
63+
php-version: ${{ matrix.php }}
64+
coverage: none
65+
extensions: pdo_sqlite, gd
66+
tools: cs2pr
67+
68+
- uses: "ramsey/composer-install@v1"
69+
with:
70+
dependency-versions: "highest"
71+
composer-options: "--prefer-dist --no-progress --no-suggest"
72+
73+
- name: Setup problem matchers for PHPUnit
74+
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
75+
76+
- name: Run PHPStan analysis
77+
run: composer run-script phpstan
78+
79+
- name: Run test suite
80+
run: composer run-script --timeout=600 test
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Browser tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- '[0-9]+.[0-9]+'
8+
pull_request: ~
9+
10+
jobs:
11+
browser-tests:
12+
name: "Browser tests"
13+
uses: ibexa/gh-workflows/.github/workflows/browser-tests.yml@main
14+
with:
15+
project-edition: 'oss'
16+
test-suite: '--profile=browser --suite=core-search --config=vendor/ibexa/core-search/behat_suites.yaml'
17+
secrets:
18+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

.github/workflows/frontend-ci.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Frontend build
2+
3+
on:
4+
push:
5+
paths:
6+
- "**.js"
7+
branches:
8+
- main
9+
- '[0-9]+.[0-9]+'
10+
pull_request:
11+
paths:
12+
- "**.js"
13+
14+
jobs:
15+
frontend-test:
16+
name: Frontend build test
17+
runs-on: "ubuntu-20.04"
18+
timeout-minutes: 5
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: actions/setup-node@v2
23+
with:
24+
node-version: '14'
25+
- run: yarn install
26+
- 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: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: PR check
2+
on:
3+
pull_request:
4+
types:
5+
- opened
6+
- synchronize
7+
- reopened
8+
- edited
9+
10+
jobs:
11+
test-base-branch:
12+
uses: ibexa/gh-workflows/.github/workflows/pr-check.yml@main

.github/workflows/release.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Automatic Changelog Generator for tag
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
- '!v*-alpha*'
8+
9+
jobs:
10+
release:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@master
15+
- name: Set Environment
16+
run: |
17+
echo "BUILD_TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
18+
- name: Get previous release tag based on type
19+
id: prevrelease
20+
uses: ibexa/version-logic-action@master
21+
with:
22+
currentTag: ${{ env.BUILD_TAG }}
23+
24+
- name: Generate changelog
25+
id: changelog
26+
uses: ibexa/changelog-generator-action@v2
27+
with:
28+
github_token: ${{ secrets.GITHUB_TOKEN }}
29+
jira_token: ${{ secrets.JIRA_TOKEN }}
30+
currentTag: ${{ env.BUILD_TAG }}
31+
previousTag: ${{ steps.prevrelease.outputs.previousTag }}
32+
33+
- name: Print the changelog
34+
run: echo "${{ steps.changelog.outputs.changelog }}"
35+
36+
- name: Create Release
37+
id: create_release
38+
uses: zendesk/action-create-release@v1
39+
with:
40+
tag_name: ${{ env.BUILD_TAG }}
41+
body: |
42+
${{ steps.changelog.outputs.changelog }}
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/.php-cs-fixer.cache
2+
/.phpunit.result.cache
3+
/composer.lock
4+
/node_modules/
5+
/vendor
6+
/yarn.lock

.php-cs-fixer.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
/**
4+
* @copyright Copyright (C) Ibexa AS. All rights reserved.
5+
* @license For full copyright and license information view LICENSE file distributed with this source code.
6+
*/
7+
declare(strict_types=1);
8+
9+
return \Ibexa\CodeStyle\PhpCsFixer\InternalConfigFactory::build()->setFinder(
10+
PhpCsFixer\Finder::create()
11+
->in(__DIR__ . '/src')
12+
->in(__DIR__ . '/tests')
13+
->files()->name('*.php')
14+
);

COPYRIGHT

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Copyright (C) 1999-2024 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.3 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 - GNU General Public License, version 2
16+
Grants an copyleft open source license with ABSOLUTELY NO WARRANTY. For the full GPL license text, please see:
17+
- LICENSE file placed in the root of this source code, or
18+
- https://www.gnu.org/licenses/old-licenses/gpl-2.0.html

0 commit comments

Comments
 (0)