Skip to content

Commit

Permalink
Added build infrastructure, Added comunity standards
Browse files Browse the repository at this point in the history
  • Loading branch information
ruff committed Sep 26, 2023
1 parent fa47c9a commit 8773cb4
Show file tree
Hide file tree
Showing 25 changed files with 2,159 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: Bug Report
about: Create a report to help us improve
title: "[BUG]"
labels: bug
assignees: horstoeko

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Additional information:**
- OS: [e.g. Windows/Limux/etc.]
- OS-Version [e.g. Windows10,Debian10,etc.]
- PHP-Version [e.g. PHP7.x,PHP8.x,etc.]

**Additional context**
Add any other context about the problem here.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature Request
about: Create a feature request
title: "[FEATURE]"
labels: enhancement
assignees: horstoeko

---

**Describe the feature**
A clear and concise description of what feature/improvement you like to have

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your feature request.

**Additional context**
Add any other context about the feature request here.
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Question
about: Ask a question
title: "[QUESTION]"
labels: question
assignees: horstoeko

---

**Your question**
A clear and concise question

**Screenshots**
If applicable, add screenshots to help explain your question.

**Additional context**
Add any other context about the question here.
38 changes: 38 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)

## Type of change

Please delete options that are not relevant.

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change requires a documentation update

# How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

- [ ] Test A
- [ ] Test B

**Test Configuration**:

* OS:
* OS Version:
* PHP Version:

# Checklist:

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream modules
32 changes: 32 additions & 0 deletions .github/workflows/build.php73.ant.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI (Ant, PHP 7.3)

on:
push:
tags-ignore:
- '**'
branches:
- '**'
paths-ignore:
- '**.md'
- '.github/**'

jobs:
build:
permissions: write-all
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
with:
php-version: '7.3'
extensions: imagick, swoole
coverage: xdebug
- name: Build with Ant
run: ant -noinput -buildfile build.ant.xml
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
with:
files: "./build/logs/junit.xml"
32 changes: 32 additions & 0 deletions .github/workflows/build.php74.ant.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI (Ant, PHP 7.4)

on:
push:
tags-ignore:
- '**'
branches:
- '**'
paths-ignore:
- '**.md'
- '.github/**'

jobs:
build:
permissions: write-all
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
extensions: imagick, swoole
coverage: xdebug
- name: Build with Ant
run: ant -noinput -buildfile build.ant.xml
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
with:
files: "./build/logs/junit.xml"
32 changes: 32 additions & 0 deletions .github/workflows/build.php80.ant.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI (Ant, PHP 8.0)

on:
push:
tags-ignore:
- '**'
branches:
- '**'
paths-ignore:
- '**.md'
- '.github/**'

jobs:
build:
permissions: write-all
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
extensions: imagick, swoole
coverage: xdebug
- name: Build with Ant
run: ant -noinput -buildfile build.ant.xml
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
with:
files: "./build/logs/junit.xml"
32 changes: 32 additions & 0 deletions .github/workflows/build.php81.ant.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI (Ant, PHP 8.1)

on:
push:
tags-ignore:
- '**'
branches:
- '**'
paths-ignore:
- '**.md'
- '.github/**'

jobs:
build:
permissions: write-all
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
extensions: imagick, swoole
coverage: xdebug
- name: Build with Ant
run: ant -noinput -buildfile build.ant.xml
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
with:
files: "./build/logs/junit.xml"
38 changes: 38 additions & 0 deletions .github/workflows/build.php81.release.ant.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Release

on:
push:
tags:
- "v*"
paths-ignore:
- '**.md'
- '.github/**'

jobs:
build:
permissions: write-all
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
extensions: imagick, swoole
coverage: xdebug
- name: Build with Ant
run: ant -noinput -buildfile build.ant.xml
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
with:
files: "./build/logs/junit.xml"
- name: Make Release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
build/dist/doc.zip
build/dist/builddoc.zip
Loading

0 comments on commit 8773cb4

Please sign in to comment.