Skip to content

Commit

Permalink
Drop TravisCI for GitHub Actions
Browse files Browse the repository at this point in the history
Update PHPUnit to v9
Update nix
  • Loading branch information
jbboehr committed Nov 6, 2020
1 parent b1529f5 commit c054d2e
Show file tree
Hide file tree
Showing 9 changed files with 1,055 additions and 429 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: ci

on:
push:
branches:
- master
- github-actions
- ci
pull_request:
branches:
- master

jobs:
run:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest, windows-latest, macos-latest]
php-versions: ["7.3", "7.4", "8.0"]
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: bcmath
coverage: xdebug
tools: phpunit

- name: Install Composer dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader --no-dev

- name: PHP test
run: phpunit
25 changes: 0 additions & 25 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 @@
# dnsbl.php

[![Build Status](https://travis-ci.org/jbboehr/dnsbl.php.png?branch=master)](https://travis-ci.org/jbboehr/dnsbl.php)
[![GitHub Build Status](https://github.com/jbboehr/dnsbl.php/workflows/ci/badge.svg)](https://github.com/jbboehr/dnsbl.php/actions?query=workflow%3Aci)

Simplified version of PEAR's Net_DNSBL with PEAR dependencies removed.

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
},
"type" : "library",
"require-dev": {
"phpunit/phpunit": "^7.4"
"phpunit/phpunit": "^9.4.2"
}
}
Loading

0 comments on commit c054d2e

Please sign in to comment.