Skip to content

Commit

Permalink
Merge pull request #12 from MacareuxDigital/github-workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hissy authored Mar 22, 2024
2 parents 78bdf73 + 69901a7 commit 45ea031
Show file tree
Hide file tree
Showing 11 changed files with 3,808 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
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).
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
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).
42 changes: 42 additions & 0 deletions .github/workflows/phpunit.yml
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
13 changes: 13 additions & 0 deletions composer.json
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"
}
}
Loading

0 comments on commit 45ea031

Please sign in to comment.