Skip to content

Commit

Permalink
add a step on tests and deploy to install subversion
Browse files Browse the repository at this point in the history
Signed-off-by: Giuseppe Foti <[email protected]>
  • Loading branch information
MocioF committed Jan 2, 2025
1 parent f85330b commit 7ef5b0d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
tools: composer
env:
fail-fast: true
- name: Install Subversion
run: sudo apt-get install subversion
- name: Build project
env:
ZIP_NAME: no-unsafe-inline-v${{ env.RELEASE_VERSION }}.zip
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,17 @@ jobs:
env:
fail-fast: true

- name: Install Subversion
run: sudo apt-get install subversion

- name: Setup Wordpress over phpunit
run: bash bin/install-wp-tests.sh wordpress root password 127.0.0.1:${{ job.services.mysql.ports[3306] }} ${{ matrix.wordpress-version }} true

- name: Get composer cache directory
id: composer-cache
run: echo "composer_dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
# run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Setup problem matchers for PHPUnit
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

Expand All @@ -91,7 +94,7 @@ jobs:
- name: Only for WP >= 5.9 Install Composer dependencies
# if: ${{ ( matrix.wordpress-version == '5.9' || matrix.wordpress-version == '6.0' || matrix.wordpress-version == '6.1' || matrix.wordpress-version == '6.2' || matrix.wordpress-version == '6.3' || matrix.wordpress-version == '6.4' ) }}
run: (composer remove --dev phpunit/phpunit || true ) && composer update --dev yoast/phpunit-polyfills --with-dependencies && composer install --no-progress --prefer-dist --optimize-autoloader --ignore-platform-reqs

- name: When using PHP 8 and WP <= 5.8
# See: https://core.trac.wordpress.org/ticket/50902
if: ${{ matrix.php-versions == '8.0' && (matrix.wordpress-version == '5.6' || matrix.wordpress-version == '5.7' || matrix.wordpress-version == '5.8' )}}
Expand All @@ -118,6 +121,9 @@ jobs:
env:
fail-fast: true

- name: Install Subversion
run: sudo apt-get install subversion

- name: Sync with SVN
run: |
make svnsync
Expand Down

0 comments on commit 7ef5b0d

Please sign in to comment.