Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
rodber committed Jul 13, 2024
1 parent ec82273 commit 837621d
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 115 deletions.
6 changes: 0 additions & 6 deletions .ecs/.header
Original file line number Diff line number Diff line change
@@ -1,6 +0,0 @@
This file is part of Chevere.

(c) Rodolfo Berrios <[email protected]>

For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
65 changes: 65 additions & 0 deletions .github/workflows/deploy-for-wordpress.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Deploy for WordPress
on:
release:
types: [published]
jobs:
build:
name: Build release
runs-on: ubuntu-latest
env:
php: "8.2"
tools: composer
ini-values: default_charset='UTF-8'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ env.php }}
ini-values: ${{ env.ini-values }}
coverage: pcov
tools: ${{ env.tools }}
env:
fail-fast: true
- name: Build
run: |
composer install -o --no-dev --ignore-platform-reqs
- name: Install WP-CLI
run: |
curl -sO https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x wp-cli.phar
mv wp-cli.phar /usr/local/bin/wp
- name: Install dist-archive-command
run: |
wp package install wp-cli/dist-archive-command --allow-root
- name: Archive WordPress plugin
run: |
wp dist-archive . . --plugin-dirname=xrdebug --filename-format={name} --format=zip --allow-root
- name: Cache artifacts
uses: actions/cache/save@v4
with:
path: xrdebug.zip
key: ${{ runner.os }}-${{ github.sha }}
upload:
name: Upload release
runs-on: ubuntu-latest
permissions:
contents: write
needs:
- build
steps:
- name: Restore artifacts
uses: actions/cache/restore@v4
with:
fail-on-cache-miss: true
path: xrdebug.zip
key: ${{ runner.os }}-${{ github.sha }}
- name: Upload artifacts
uses: ncipollo/release-action@v1
with:
allowUpdates: true
omitBodyDuringUpdate: true
artifacts: >
xrdebug.zip
token: ${{ secrets.GITHUB_TOKEN }}
52 changes: 0 additions & 52 deletions .github/workflows/sonarcloud.yml

This file was deleted.

48 changes: 0 additions & 48 deletions .github/workflows/test.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
"finishStatusMessage": "${fileBasename} OK"
},
]
}
}
16 changes: 8 additions & 8 deletions .vscode/templates.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"body": [
"<?php",
"",
"namespace Chevere\\%namespace%;",
"namespace Chevere\\xrDebug\\WordPress;",
"",
"/**",
" * Describes the component in charge of ${1:doing}.",
Expand All @@ -22,7 +22,7 @@
"body": [
"<?php",
"",
"namespace Chevere\\%namespace%;",
"namespace Chevere\\xrDebug\\WordPress;",
"",
"final class $TM_FILENAME_BASE",
"{",
Expand All @@ -36,7 +36,7 @@
"body": [
"<?php",
"",
"namespace Chevere\\%namespace%;",
"namespace Chevere\\xrDebug\\WordPress;",
"",
"use Chevere\\Exceptions\\Core\\Exception;",
"",
Expand All @@ -54,7 +54,7 @@
"body": [
"<?php",
"",
"namespace Chevere\\%namespace%;",
"namespace Chevere\\xrDebug\\WordPress;",
"",
"trait $TM_FILENAME_BASE",
"{",
Expand All @@ -68,7 +68,7 @@
"body": [
"<?php",
"",
"namespace Chevere\\%namespace%\\\\${TM_DIRECTORY/.*src\\/(([^\\/]*)(\\/)?)|(\\/)([^\\/]*)/$2${3:+.}${5:+.}$5/g};",
"namespace Chevere\\xrDebug\\WordPress\\\\${TM_DIRECTORY/.*src\\/(([^\\/]*)(\\/)?)|(\\/)([^\\/]*)/$2${3:+.}${5:+.}$5/g};",
"",
"/**",
" * Describes the component in charge of ${1:doing}.",
Expand All @@ -85,7 +85,7 @@
"body": [
"<?php",
"",
"namespace Chevere\\%namespace%\\\\${TM_DIRECTORY/.*src\\/(([^\\/]*)(\\/)?)|(\\/)([^\\/]*)/$2${3:+.}${5:+.}$5/g};",
"namespace Chevere\\xrDebug\\WordPress\\\\${TM_DIRECTORY/.*src\\/(([^\\/]*)(\\/)?)|(\\/)([^\\/]*)/$2${3:+.}${5:+.}$5/g};",
"",
"final class $TM_FILENAME_BASE",
"{",
Expand All @@ -99,7 +99,7 @@
"body": [
"<?php",
"",
"namespace Chevere\\%namespace%\\\\${TM_DIRECTORY/.*src\\/(([^\\/]*)(\\/)?)|(\\/)([^\\/]*)/$2${3:+.}${5:+.}$5/g};",
"namespace Chevere\\xrDebug\\WordPress\\\\${TM_DIRECTORY/.*src\\/(([^\\/]*)(\\/)?)|(\\/)([^\\/]*)/$2${3:+.}${5:+.}$5/g};",
"",
"use Chevere\\Exceptions\\Core\\Exception;",
"",
Expand All @@ -117,7 +117,7 @@
"body": [
"<?php",
"",
"namespace Chevere\\%namespace%\\\\${TM_DIRECTORY/.*src\\/(([^\\/]*)(\\/)?)|(\\/)([^\\/]*)/$2${3:+.}${5:+.}$5/g};",
"namespace Chevere\\xrDebug\\WordPress\\\\${TM_DIRECTORY/.*src\\/(([^\\/]*)(\\/)?)|(\\/)([^\\/]*)/$2${3:+.}${5:+.}$5/g};",
"",
"trait $TM_FILENAME_BASE",
"{",
Expand Down

0 comments on commit 837621d

Please sign in to comment.