Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate the tests from Travis CI to GitHub Actions? #150

Open
PeterDaveHello opened this issue Jul 18, 2024 · 0 comments · May be fixed by #151
Open

Migrate the tests from Travis CI to GitHub Actions? #150

PeterDaveHello opened this issue Jul 18, 2024 · 0 comments · May be fixed by #151

Comments

@PeterDaveHello
Copy link
Contributor

There are some tests in https://github.com/WPDevelopers/disable-comments/blob/master/.travis.yml:

language: php
notifications:
email:
on_success: never
on_failure: change
cache:
directories:
- vendor
- $HOME/.composer/cache
matrix:
include:
- php: 7.4
env: WP_VERSION=latest
- php: 7.3
env: WP_VERSION=latest
- php: 7.2
env: WP_VERSION=latest
- php: 7.1
env: WP_VERSION=latest
- php: 7.1
env: WP_VERSION=4.9
- php: 7.1
env: WP_VERSION=4.8
- php: 7.1
env: WP_VERSION=4.7
- php: 7.1
env: WP_TRAVISCI=phpcs
allow_failures:
- php: 7.1
env: WP_TRAVISCI=phpcs
branches:
only:
- master
before_script:
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- |
if [[ ! -z "$WP_VERSION" ]] ; then
bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
phpenv config-rm xdebug.ini
composer global require "phpunit/phpunit=5.7.*"
fi
- |
if [[ "$WP_TRAVISCI" == "phpcs" ]] ; then
composer global require wp-coding-standards/wpcs
phpcs --config-set installed_paths $HOME/.composer/vendor/wp-coding-standards/wpcs
fi
- composer install --prefer-source --no-interaction --dev
script:
- |
if [[ ! -z "$WP_VERSION" ]] ; then
phpdbg -qrr phpunit
WP_MULTISITE=1 phpdbg -qrr phpunit
fi
- |
if [[ "$WP_TRAVISCI" == "phpcs" ]] ; then
phpcs --standard=phpcs.ruleset.xml $(find . -name '*.php')
fi

But it looks like Travis CI has been abandoned, and GitHub Actions doesn't have those tests:
https://github.com/WPDevelopers/disable-comments/tree/master/.github/workflows

Would it be a good idea to migrate the tests from Travis CI to GitHub Actions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant