Skip to content

Commit

Permalink
Add issue templates and reusable PHPUnit workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hug0-Drelon committed Nov 19, 2024
1 parent d8e29cf commit 88b981e
Show file tree
Hide file tree
Showing 4 changed files with 122 additions and 1 deletion.
31 changes: 31 additions & 0 deletions ISSUE_TEMPLATE/BUG_REPORT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: "\U0001F41B Bug Report"
about: "Something isn't working as expected"
title: ''
labels: 'i: bug'
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.

**Environment (please complete the following information):**
- Device: [e.g. Desktop, iPhone...]
- OS: [e.g. Unbuntu, iOS...]
- Browser [e.g. Chrome, Safari...]
- Version [e.g. 22]

**Additional context, screenshots**
Add any other context about the problem here.
If applicable, add screenshots to help explain your problem.
20 changes: 20 additions & 0 deletions ISSUE_TEMPLATE/FEATURE_REQUEST.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: "\U0001F195 Feature Request"
about: "I have a suggestion for missing functionality or improvements"
title: ''
labels: 'i: enhancement'
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context, screenshots**
Add any other context or screenshots about the feature request here.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# .github
polylang/.github
===================

🌐 Centralized health files for all repositories. Contains mostly shared workflows and templates.
67 changes: 67 additions & 0 deletions workflows/reusable-integration-and-unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Integration and Unit Tests

# Cancels all previous workflow runs for the same branch that have not yet completed.
concurrency:
# The concurrency group contains the workflow name and the branch name.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
testing:
name: WP ${{ matrix.wordpress-version }} + PHP ${{ matrix.php-version }} + MS ${{ matrix.is-multisite }} + Allowed to fail ${{ matrix.allow-failure }}

runs-on: ubuntu-latest

services:
mysql:
image: mariadb:11.2
ports:
- '3306:3306'
env:
MYSQL_ROOT_PASSWORD: wordpress
MARIADB_INITDB_SKIP_TZINFO: 1
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
MYSQL_DATABASE: wordpress_test

strategy:
fail-fast: false
matrix:
include:
- wordpress-version: '6.2.x'
php-version: '7.4'
is-multisite: 0
allow-failure: false
- wordpress-version: 'latest'
php-version: '7.2'
is-multisite: 0
allow-failure: false
- wordpress-version: 'latest'
php-version: '8.1'
is-multisite: 0
allow-failure: false
- wordpress-version: 'latest'
php-version: '8.0'
is-multisite: 1
allow-failure: false
- wordpress-version: 'nightly'
php-version: '7.2'
is-multisite: 0
allow-failure: true
- wordpress-version: 'nightly'
php-version: '8.3'
is-multisite: 0
allow-failure: true

env:
WP_MULTISITE: ${{ matrix.is-multisite }}

steps:
- name: Check out the source code
uses: actions/checkout@v3

- name: Run PHPUnit tests
uses: polylang/actions/phpunit@main
with:
php-version: ${{ matrix.php-version }}
wordpress-version: ${{ matrix.wordpress-version }}

0 comments on commit 88b981e

Please sign in to comment.