Skip to content

Commit

Permalink
Use GitHub actions for continuous integration (CI)
Browse files Browse the repository at this point in the history
Bye bye Travis CI, you've served us well.
  • Loading branch information
clue committed Nov 27, 2020
1 parent 75d8da2 commit e0168ed
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 36 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

on:
push:
pull_request:

jobs:
PHPUnit:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- windows-latest
- ubuntu-latest
php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: sockets
- run: composer install
- run: vendor/bin/phpunit --coverage-text
if: ${{ matrix.php >= 7.3 }}
- run: vendor/bin/phpunit --coverage-text -c phpunit.xml.legacy
if: ${{ matrix.php < 7.3 }}
35 changes: 0 additions & 35 deletions .travis.yml

This file was deleted.

4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# clue/socket-raw [![Build Status](https://travis-ci.org/clue/php-socket-raw.svg?branch=master)](https://travis-ci.org/clue/php-socket-raw)
# clue/socket-raw

[![CI status](https://github.com/clue/php-socket-raw/workflows/CI/badge.svg)](https://github.com/clue/php-socket-raw/actions)

Simple and lightweight OOP wrapper for PHP's low-level sockets extension (ext-sockets)

Expand Down

0 comments on commit e0168ed

Please sign in to comment.