Skip to content

Commit 7f2ff79

Browse files
committed
Switch to GitHub actions for CI
1 parent 76b87f8 commit 7f2ff79

File tree

4 files changed

+34
-16
lines changed

4 files changed

+34
-16
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
on:
2+
- pull_request
3+
- push
4+
5+
name: CI
6+
7+
jobs:
8+
run:
9+
name: Tests
10+
11+
strategy:
12+
matrix:
13+
operating-system: [ubuntu-latest]
14+
php-versions: ['7.1', '7.2', '7.3', '7.4', '8.0']
15+
16+
runs-on: ${{ matrix.operating-system }}
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v2
21+
22+
- name: Install PHP
23+
uses: shivammathur/setup-php@v2
24+
with:
25+
php-version: ${{ matrix.php-versions }}
26+
extensions: sockets, json, curl
27+
28+
- name: Install dependencies with composer
29+
run: composer install
30+
31+
- name: Run tests
32+
run: make test

.mddoc.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<section title="Http">
44
<badge-poser type="version" />
55
<badge-poser type="license" />
6-
<badge-travis name="CorpusPHP/Http" />
6+
<badge-github-action name="CorpusPHP/Http" workflow="CI" />
77

88
<text>HTTP Status Codes and Exceptions</text>
99

.travis.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Latest Stable Version](https://poser.pugx.org/corpus/http/version)](https://packagist.org/packages/corpus/http)
44
[![License](https://poser.pugx.org/corpus/http/license)](https://packagist.org/packages/corpus/http)
5-
[![Build Status](https://travis-ci.org/CorpusPHP/Http.svg?branch=master)](https://travis-ci.org/CorpusPHP/Http)
5+
[![Build Status](https://github.com/CorpusPHP/Http/workflows/CI/badge.svg?)](https://github.com/CorpusPHP/Http/actions?query=workflow%3ACI)
66

77

88
HTTP Status Codes and Exceptions

0 commit comments

Comments
 (0)