Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
codepuncher committed Jan 7, 2025
1 parent 1d4002d commit 312518f
Show file tree
Hide file tree
Showing 6 changed files with 606 additions and 40 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# yamllint disable-line rule:document-start
name: CI

# yamllint disable-line rule:truthy
on: [push]

jobs:
Expand All @@ -9,29 +11,38 @@ jobs:
if: "!contains(github.event.head_commit.message, '[ci skip]')"
strategy:
matrix:
php: ['8.1']
php: ['8.1', '8.2']

steps:
- name: Checkout the project
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup the PHP ${{ matrix.php }} environment on ${{ runner.os }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: xdebug
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Restore the Composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> "${GITHUB_OUTPUT}"

- uses: actions/cache@v3
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
# yamllint disable-line rule:line-length
key: ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-${{ matrix.php }}-composer-

- name: Setup Composer Private Packagist authentication
# yamllint disable-line rule:line-length
run: composer config --global --auth http-basic.repo.packagist.com itineris ${{ secrets.PRIVATE_PACKAGIST_TOKEN }}

- name: Install Composer dependencies
# yamllint disable-line rule:line-length
run: composer install --no-progress --prefer-dist --optimize-autoloader --no-suggest

- name: Execute the PHP lint script
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
vendor/
.idea/
.vscode/
wordpress/
33 changes: 31 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
"name": "Igor Tkachenko",
"email": "[email protected]",
"role": "Developer"
},
{
"name": "Lee Hanbury-Pickett",
"email": "[email protected]",
"role": "Developer"
}
],
"require": {
Expand All @@ -37,7 +42,10 @@
},
"require-dev": {
"roave/security-advisories": "dev-master",
"itinerisltd/itineris-wp-coding-standards": "^1.0"
"itinerisltd/itineris-wp-coding-standards": "^1.0",
"itinerisltd/gravityforms": "^2.9",
"roots/wordpress-no-content": "^6.7",
"roots/wordpress": "^6.7"
},
"extra": {
"branch-alias": {
Expand All @@ -52,7 +60,28 @@
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
"dealerdirect/phpcodesniffer-composer-installer": true,
"composer/installers": true,
"roots/wordpress-core-installer": true
}
},
"repositories": {
"private-packagist": {
"type": "composer",
"url": "https://repo.packagist.com/itinerisltd/"
}
},
"extra": {
"installer-paths": {
"wordpress/wp-content/mu-plugins/{$name}/": [
"type:wordpress-muplugin"
],
"wordpress/wp-content/plugins/{$name}/": [
"type:wordpress-plugin"
],
"wordpress/wp-content/themes/{$name}/": [
"type:wordpress-theme"
]
}
}
}
Loading

0 comments on commit 312518f

Please sign in to comment.