-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add issue templates and reusable PHPUnit workflow.
- Loading branch information
1 parent
d8e29cf
commit 88b981e
Showing
4 changed files
with
122 additions
and
1 deletion.
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,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. |
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: "\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. |
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 |
---|---|---|
@@ -1 +1,4 @@ | ||
# .github | ||
polylang/.github | ||
=================== | ||
|
||
🌐 Centralized health files for all repositories. Contains mostly shared workflows and templates. |
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,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 }} |