Skip to content

Commit 3c31f61

Browse files
W0rmawilldurand
authored andcommitted
Switch from travis to github actions
1 parent da5e7a3 commit 3c31f61

File tree

3 files changed

+38
-23
lines changed

3 files changed

+38
-23
lines changed

.github/workflows/ci.yaml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: ci
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
phpunit:
11+
runs-on: "ubuntu-20.04"
12+
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
php-version:
17+
- "7.1"
18+
- "7.2"
19+
- "7.3"
20+
- "7.4"
21+
- "8.0"
22+
- "8.1"
23+
24+
steps:
25+
- uses: actions/checkout@v2
26+
27+
- name: "Install PHP ${{ matrix.php-version }}"
28+
uses: "shivammathur/setup-php@v2"
29+
with:
30+
php-version: "${{ matrix.php-version }}"
31+
coverage: "pcov"
32+
33+
- name: "Install dependencies with Composer"
34+
uses: "ramsey/composer-install@v1"
35+
36+
- name: "Run PHPUnit"
37+
run: "vendor/bin/simple-phpunit --coverage-text"

.travis.yml

-21
This file was deleted.

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
Negotiation
22
===========
33

4-
[![Build
5-
Status](https://travis-ci.org/willdurand/Negotiation.svg?branch=master)](http://travis-ci.org/willdurand/Negotiation)
4+
[![GitHub Actions](https://github.com/willdurand/Negotiation/workflows/CI/badge.svg)](https://github.com/willdurand/Negotiation/actions?query=workflow%3A%22CI%22+branch%3Amaster)
65
[![Build
76
status](https://ci.appveyor.com/api/projects/status/6tbe8j3gofdlfm4v?svg=true)](https://ci.appveyor.com/project/willdurand/negotiation)
87
[![Total

0 commit comments

Comments
 (0)