-
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.
Merge pull request #12 from MacareuxDigital/github-workflow
- Loading branch information
Showing
11 changed files
with
3,808 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,39 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: "[Bug Report] - Brief description of the bug" | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Actual Behavior:** | ||
Explain what actually happened after performing the steps above. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Environment:** | ||
- Operating System: [e.g., Windows 10, macOS, Linux] | ||
- Browser (if applicable): [e.g., Chrome, Firefox, Safari] | ||
- Version of the CMS: [e.g., 9.1.2, commit hash] | ||
- Version of the package: [e.g., v1.2.3, commit hash] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. | ||
|
||
**Priority:** | ||
Specify the priority level for this bug report (e.g., High, Medium, Low). |
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 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: "[Feature Request] - Brief description of the feature" | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Description:** | ||
Provide a clear and concise description of the feature you are requesting. Include any relevant details that would help the development team understand the purpose and expected outcome of the feature. | ||
|
||
**Use Case:** | ||
Explain the specific use case or scenario where this feature would be beneficial. Include any examples or user stories that illustrate the need for this enhancement. | ||
|
||
**Proposed Implementation:** | ||
If you have any ideas on how the feature could be implemented, share them here. This could include technical details, design considerations, or any other relevant information. | ||
|
||
**Priority:** | ||
Specify the priority level for this feature request (e.g., High, Medium, Low). |
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,42 @@ | ||
name: PHPUnit | ||
|
||
on: | ||
- pull_request | ||
- push | ||
|
||
jobs: | ||
phpunit: | ||
name: Run Unit Tests in Docker | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php: ['8.2'] # Add more PHP versions here if needed (e.g. ['8.1', '8.2']) | ||
concrete: ['latest-full'] # Add more concrete5 versions here if needed (e.g. ['9.0.0', '9.0.1', '9.0.2']) | ||
container: ghcr.io/concrete5-community/docker5:${{ matrix.concrete }} | ||
steps: | ||
- | ||
name: Configure environment | ||
run: | | ||
switch-composer 2 | ||
switch-php ${{ matrix.php }} | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v3 | ||
- | ||
name: Set owner | ||
run: chown -R www-data:www-data "$GITHUB_WORKSPACE" | ||
- | ||
name: Prepare package | ||
run: ln -s "$GITHUB_WORKSPACE" /app/packages/v9_package_boilerplate | ||
- | ||
name: Start services | ||
run: ccm-service start db web | ||
- | ||
name: Install package dependencies | ||
run: sudo -u www-data composer --ansi --no-interaction install --optimize-autoloader --working-dir=/app/packages/v9_package_boilerplate | ||
- | ||
name: Install package | ||
run: sudo -u www-data /app/concrete/bin/concrete5 --ansi --no-interaction c5:package:install v9_package_boilerplate | ||
- | ||
name: Run composer test of the package | ||
run: sudo -u www-data composer --ansi --no-interaction test --working-dir=/app/packages/v9_package_boilerplate |
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 @@ | ||
{ | ||
"require-dev": { | ||
"pestphp/pest": "^2.34" | ||
}, | ||
"config": { | ||
"allow-plugins": { | ||
"pestphp/pest-plugin": true | ||
} | ||
}, | ||
"scripts": { | ||
"test": "vendor/bin/pest" | ||
} | ||
} |
Oops, something went wrong.