Skip to content

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

Open
@PeterDaveHello

Description

@PeterDaveHello

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions