Skip to content

Commit

Permalink
Merge branch 'develop' into fix/define-event
Browse files Browse the repository at this point in the history
  • Loading branch information
tarecord authored Nov 12, 2024
2 parents 0c69b89 + 226448f commit 4ebee0b
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 30 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,17 @@ jobs:
php-version: ["7.1", "7.2", "7.3", "7.4", "8.0", "8.1", "8.2", "8.3"]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Configure PHP environment
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
php-version: '8.2'
extensions: mbstring, intl
coverage: none

- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- uses: ramsey/composer-install@v2
with:
dependency-versions: highest
- name: Composer Install
uses: ramsey/composer-install@v3

- name: Run PHP Compatibility
run: composer compatibility:php-${{ matrix.php-version }}
6 changes: 3 additions & 3 deletions .github/workflows/phpcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Configure PHP environment
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
- uses: ramsey/composer-install@v2
php-version: '8.2'
- uses: ramsey/composer-install@v3
with:
composer-options: "--ignore-platform-reqs --optimize-autoloader"
- name: Run PHPCS
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Configure PHP environment
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
- uses: ramsey/composer-install@v2
php-version: '8.2'
- uses: ramsey/composer-install@v3
with:
composer-options: "--ignore-platform-reqs --optimize-autoloader"
- name: Run PHPStan
Expand Down
12 changes: 3 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2
with:
fetch-depth: 1000
submodules: recursive
uses: actions/checkout@v4
# ------------------------------------------------------------------------------
# Checkout slic
# ------------------------------------------------------------------------------
- name: Checkout slic
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: stellarwp/slic
ref: main
path: slic
fetch-depth: 1
# ------------------------------------------------------------------------------
# Prepare our composer cache directory
# ------------------------------------------------------------------------------
- name: Get Composer Cache Directory
id: get-composer-cache-dir
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v2
- uses: actions/cache@v4
id: composer-cache
with:
path: ${{ steps.get-composer-cache-dir.outputs.dir }}
Expand Down
1 change: 1 addition & 0 deletions .lando.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@ events:
post-start:
- appserver: composer install
- appserver: /app/dev/lando/install-wp.sh
- appserver: cd /app/dev/public/wp-content/plugins/library-testing && composer install
post-destroy:
- appserver: rm -rf /app/dev/public/wp

0 comments on commit 4ebee0b

Please sign in to comment.