Skip to content

Commit 837621d

Browse files
committed
typos
1 parent ec82273 commit 837621d

6 files changed

Lines changed: 74 additions & 115 deletions

File tree

.ecs/.header

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +0,0 @@
1-
This file is part of Chevere.
2-
3-
(c) Rodolfo Berrios <rodolfo@chevere.org>
4-
5-
For the full copyright and license information, please view the LICENSE
6-
file that was distributed with this source code.
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Deploy for WordPress
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
build:
7+
name: Build release
8+
runs-on: ubuntu-latest
9+
env:
10+
php: "8.2"
11+
tools: composer
12+
ini-values: default_charset='UTF-8'
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
- name: Setup PHP
17+
uses: shivammathur/setup-php@v2
18+
with:
19+
php-version: ${{ env.php }}
20+
ini-values: ${{ env.ini-values }}
21+
coverage: pcov
22+
tools: ${{ env.tools }}
23+
env:
24+
fail-fast: true
25+
- name: Build
26+
run: |
27+
composer install -o --no-dev --ignore-platform-reqs
28+
- name: Install WP-CLI
29+
run: |
30+
curl -sO https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
31+
chmod +x wp-cli.phar
32+
mv wp-cli.phar /usr/local/bin/wp
33+
- name: Install dist-archive-command
34+
run: |
35+
wp package install wp-cli/dist-archive-command --allow-root
36+
- name: Archive WordPress plugin
37+
run: |
38+
wp dist-archive . . --plugin-dirname=xrdebug --filename-format={name} --format=zip --allow-root
39+
- name: Cache artifacts
40+
uses: actions/cache/save@v4
41+
with:
42+
path: xrdebug.zip
43+
key: ${{ runner.os }}-${{ github.sha }}
44+
upload:
45+
name: Upload release
46+
runs-on: ubuntu-latest
47+
permissions:
48+
contents: write
49+
needs:
50+
- build
51+
steps:
52+
- name: Restore artifacts
53+
uses: actions/cache/restore@v4
54+
with:
55+
fail-on-cache-miss: true
56+
path: xrdebug.zip
57+
key: ${{ runner.os }}-${{ github.sha }}
58+
- name: Upload artifacts
59+
uses: ncipollo/release-action@v1
60+
with:
61+
allowUpdates: true
62+
omitBodyDuringUpdate: true
63+
artifacts: >
64+
xrdebug.zip
65+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/sonarcloud.yml

Lines changed: 0 additions & 52 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
"finishStatusMessage": "${fileBasename} OK"
1010
},
1111
]
12-
}
12+
}

.vscode/templates.code-snippets

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"body": [
66
"<?php",
77
"",
8-
"namespace Chevere\\%namespace%;",
8+
"namespace Chevere\\xrDebug\\WordPress;",
99
"",
1010
"/**",
1111
" * Describes the component in charge of ${1:doing}.",
@@ -22,7 +22,7 @@
2222
"body": [
2323
"<?php",
2424
"",
25-
"namespace Chevere\\%namespace%;",
25+
"namespace Chevere\\xrDebug\\WordPress;",
2626
"",
2727
"final class $TM_FILENAME_BASE",
2828
"{",
@@ -36,7 +36,7 @@
3636
"body": [
3737
"<?php",
3838
"",
39-
"namespace Chevere\\%namespace%;",
39+
"namespace Chevere\\xrDebug\\WordPress;",
4040
"",
4141
"use Chevere\\Exceptions\\Core\\Exception;",
4242
"",
@@ -54,7 +54,7 @@
5454
"body": [
5555
"<?php",
5656
"",
57-
"namespace Chevere\\%namespace%;",
57+
"namespace Chevere\\xrDebug\\WordPress;",
5858
"",
5959
"trait $TM_FILENAME_BASE",
6060
"{",
@@ -68,7 +68,7 @@
6868
"body": [
6969
"<?php",
7070
"",
71-
"namespace Chevere\\%namespace%\\\\${TM_DIRECTORY/.*src\\/(([^\\/]*)(\\/)?)|(\\/)([^\\/]*)/$2${3:+.}${5:+.}$5/g};",
71+
"namespace Chevere\\xrDebug\\WordPress\\\\${TM_DIRECTORY/.*src\\/(([^\\/]*)(\\/)?)|(\\/)([^\\/]*)/$2${3:+.}${5:+.}$5/g};",
7272
"",
7373
"/**",
7474
" * Describes the component in charge of ${1:doing}.",
@@ -85,7 +85,7 @@
8585
"body": [
8686
"<?php",
8787
"",
88-
"namespace Chevere\\%namespace%\\\\${TM_DIRECTORY/.*src\\/(([^\\/]*)(\\/)?)|(\\/)([^\\/]*)/$2${3:+.}${5:+.}$5/g};",
88+
"namespace Chevere\\xrDebug\\WordPress\\\\${TM_DIRECTORY/.*src\\/(([^\\/]*)(\\/)?)|(\\/)([^\\/]*)/$2${3:+.}${5:+.}$5/g};",
8989
"",
9090
"final class $TM_FILENAME_BASE",
9191
"{",
@@ -99,7 +99,7 @@
9999
"body": [
100100
"<?php",
101101
"",
102-
"namespace Chevere\\%namespace%\\\\${TM_DIRECTORY/.*src\\/(([^\\/]*)(\\/)?)|(\\/)([^\\/]*)/$2${3:+.}${5:+.}$5/g};",
102+
"namespace Chevere\\xrDebug\\WordPress\\\\${TM_DIRECTORY/.*src\\/(([^\\/]*)(\\/)?)|(\\/)([^\\/]*)/$2${3:+.}${5:+.}$5/g};",
103103
"",
104104
"use Chevere\\Exceptions\\Core\\Exception;",
105105
"",
@@ -117,7 +117,7 @@
117117
"body": [
118118
"<?php",
119119
"",
120-
"namespace Chevere\\%namespace%\\\\${TM_DIRECTORY/.*src\\/(([^\\/]*)(\\/)?)|(\\/)([^\\/]*)/$2${3:+.}${5:+.}$5/g};",
120+
"namespace Chevere\\xrDebug\\WordPress\\\\${TM_DIRECTORY/.*src\\/(([^\\/]*)(\\/)?)|(\\/)([^\\/]*)/$2${3:+.}${5:+.}$5/g};",
121121
"",
122122
"trait $TM_FILENAME_BASE",
123123
"{",

0 commit comments

Comments
 (0)