Skip to content

Commit

Permalink
Migrate the tests from Travis CI to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterDaveHello committed Jul 18, 2024
1 parent 0c16718 commit f0027aa
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 64 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Run Tests

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
php-version: [7.1, 7.2, 7.3, 7.4]

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}

- name: Install dependencies
run: composer install --prefer-source --no-interaction --dev

- name: Run tests
run: vendor/bin/phpunit
63 changes: 0 additions & 63 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Disable Comments for WordPress

[![Build Status](https://travis-ci.org/solarissmoke/disable-comments.svg?branch=master)](https://travis-ci.org/solarissmoke/disable-comments)
[![Build Status](https://github.com/WPDevelopers/disable-comments/actions/workflows/tests.yml/badge.svg)](https://github.com/WPDevelopers/disable-comments/actions/workflows/tests.yml)

This is the development respository for the [Disable Comments](https://wordpress.org/plugins/disable-comments/) WordPress plugin. Send pull requests here, download the latest stable version there!

Expand Down

0 comments on commit f0027aa

Please sign in to comment.