Skip to content

Commit

Permalink
Merge branch 'trunk' into 464-allow-wp-prefixes-on-plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
davidperezgar authored Nov 12, 2024
2 parents c476a3f + fe8ea10 commit 8de27e0
Show file tree
Hide file tree
Showing 85 changed files with 5,225 additions and 2,344 deletions.
3 changes: 3 additions & 0 deletions .distignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ tests
.distignore
.editorconfig
.eslintrc.js
.gherkin-lintignore
.gherkin-lintrc
.gitattributes
.gitignore
.nvmrc
.phpunit.result.cache
.typos.toml
.wp-env.json
.wp-env.override.json
behat.yml
Expand Down
2 changes: 2 additions & 0 deletions .gherkin-lintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/**
vendor/**
32 changes: 32 additions & 0 deletions .gherkin-lintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"file-name": [
"on",
{
"style": "kebab-case"
}
],
"indentation": [
"on",
{
"Feature": 0,
"Background": 2,
"Scenario": 2,
"Examples": 4,
"Step": 4,
"given": 4,
"example": 6,
"and": 4
}
],
"no-dupe-feature-names": "on",
"no-dupe-scenario-names": "off",
"no-empty-file": "on",
"no-files-without-scenarios": "on",
"no-multiple-empty-lines": "on",
"no-partially-commented-tag-lines": "on",
"no-trailing-spaces": "on",
"no-unnamed-features": "on",
"no-unnamed-scenarios": "on",
"no-scenario-outlines-without-examples": "on",
"use-and": "on"
}
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@

/.editorconfig export-ignore
/.eslintrc.js export-ignore
/.gherkin-lintignore export-ignore
/.gherkin-lintrc export-ignore
/.nvmrc export-ignore
/.typos.toml export-ignore
/.wp-env.json export-ignore
/composer.lock export-ignore
/package.json export-ignore
Expand Down
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Plugin review team members
includes/Checker/Checks/Plugin_Repo @barrykooij @ernilambar @davidperezgar @frantorres
includes/Checker/Checks/Plugin_Repo @barrykooij @ernilambar @davidperezgar @frantorres @chriscct7

# Performance team members
includes/Checker/Checks/Performance @adamsilverstein @felixarntz @joemcgill @mukeshpanchal27 @swissspidy @westonruter
2 changes: 1 addition & 1 deletion .github/workflows/behat-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ jobs:
- name: Upload code coverage report
if: ${{ matrix.coverage }}
uses: codecov/codecov-action@v4.5.0
uses: codecov/codecov-action@v4.6.0
with:
files: ${{ steps.coverage_files.outputs.files }}
flags: feature
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/gherkin-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Gherkin Linting

on:
push:
branches:
- trunk
- 'release/**'
# Only run if feature files are changed.
paths:
- '.github/workflows/gherkin-lint.yml'
- 'package-lock.json'
- '**.feature'
pull_request:
branches:
- trunk
- 'release/**'
- 'feature/**'
# Only run if feature files are changed.
paths:
- '.github/workflows/gherkin-lint.yml'
- 'package-lock.json'
- '**.feature'
types:
- opened
- reopened
- synchronize

jobs:
gherkin-lint:
name: Lint Gherkin Feature files
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: npm

- name: Install dependencies
run: npm ci

- name: Gherkin lint
run: npm run lint-gherkin
4 changes: 2 additions & 2 deletions .github/workflows/php-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:
- name: Upload code coverage report
if: ${{ matrix.coverage }}
uses: codecov/codecov-action@893cfea3da0870ceb77096be8b5fe014720f3c32
uses: codecov/codecov-action@68708a9f7a6b6b5fe33673f782f93725c5eff3c6
with:
file: build/logs/*.xml
flags: unit
Expand Down Expand Up @@ -149,7 +149,7 @@ jobs:
- name: Upload code coverage report
if: ${{ matrix.coverage }}
uses: codecov/codecov-action@893cfea3da0870ceb77096be8b5fe014720f3c32
uses: codecov/codecov-action@68708a9f7a6b6b5fe33673f782f93725c5eff3c6
with:
file: build/logs/*.xml
flags: phpcs-sniffs
Expand Down
4 changes: 4 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[default]
extend-ignore-re = [
"ba",
]
63 changes: 63 additions & 0 deletions assets/css/plugin-check-admin.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
/* Responsive table */
@media screen and (max-width: 782px) {
#plugin-check__submit {
margin-top: 1em;
}

table#plugin-check__categories td {
padding-bottom: .5em;
}

table.plugin-check__results-table {
border: 0;
}

table.plugin-check__results-table caption {
font-size: 1.3em;
}

table.plugin-check__results-table thead {
border: none;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}

table.plugin-check__results-table tr {
border-bottom: 3px solid #ddd;
display: block;
}

table.plugin-check__results-table td,
table.plugin-check__results-table code {
font-size: .9em;
}

table.plugin-check__results-table td {
border-bottom: 1px solid #ddd;
display: block;
text-align: right;
}

table.plugin-check__results-table td::before {
content: attr(data-label);
float: left;
font-weight: bold;
}

.rtl table.plugin-check__results-table td {
text-align: left;
}

.rtl table.plugin-check__results-table td::before {
float: right;
}

table.plugin-check__results-table td:last-child {
border-bottom: 0;
}
}
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
"szepeviktor/phpstan-wordpress": "^1.1",
"wp-cli/extension-command": "^2.1",
"wp-cli/wp-cli": "^2.8",
"wp-cli/wp-cli-tests": "^4.2.9"
"wp-cli/wp-cli-tests": "^4.2.9",
"wp-cli/language-command": "^2.0",
"wp-cli/i18n-command": "^2.6",
"wp-cli/entity-command": "^2.8"
},
"repositories": [
{
Expand Down
Loading

0 comments on commit 8de27e0

Please sign in to comment.