Skip to content

Commit 69c50da

Browse files
Switch to GitHub Actions
1 parent e7a9ddd commit 69c50da

File tree

3 files changed

+76
-64
lines changed

3 files changed

+76
-64
lines changed

.github/workflows/tests.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
tests:
9+
name: PHP ${{ matrix.php }}; Symfony ${{ matrix.laravel }}
10+
runs-on: ubuntu-20.04
11+
12+
strategy:
13+
matrix:
14+
php: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
15+
symfony: ['3', '4', '5']
16+
exclude:
17+
- php: '5.6'
18+
symfony: '4'
19+
- php: '5.6'
20+
symfony: '5'
21+
- php: '7.0'
22+
symfony: '4'
23+
- php: '7.0'
24+
symfony: '5'
25+
- php: '7.1'
26+
symfony: '5'
27+
28+
steps:
29+
- name: Checkout Code
30+
uses: actions/checkout@v2
31+
32+
- name: Setup PHP
33+
uses: shivammathur/setup-php@v2
34+
with:
35+
php-version: ${{ matrix.php }}
36+
tools: composer:v2
37+
coverage: none
38+
39+
- name: Setup Problem Matchers
40+
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
41+
42+
- name: Select Symfony 3
43+
uses: nick-invision/retry@v1
44+
with:
45+
timeout_minutes: 5
46+
max_attempts: 5
47+
command: composer require "symfony/process:^3.4" --no-update --no-interaction
48+
if: "matrix.symfony == '3'"
49+
50+
- name: Select Symfony 4
51+
uses: nick-invision/retry@v1
52+
with:
53+
timeout_minutes: 5
54+
max_attempts: 5
55+
command: composer require "symfony/process:^4.4" --no-update --no-interaction
56+
if: "matrix.symfony == '4'"
57+
58+
- name: Select Symfony 5
59+
uses: nick-invision/retry@v1
60+
with:
61+
timeout_minutes: 5
62+
max_attempts: 5
63+
command: composer require "symfony/process:^5.2" --no-update --no-interaction
64+
if: "matrix.symfony == '5'"
65+
66+
- name: Install PHP Dependencies
67+
uses: nick-invision/retry@v1
68+
with:
69+
timeout_minutes: 5
70+
max_attempts: 5
71+
command: composer update --no-interaction --no-progress
72+
73+
- name: Execute PHPUnit
74+
run: vendor/bin/phpunit

.travis.yml

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

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
Gitlib for Gitonomy
22
===================
33

4-
[![Build Status](https://img.shields.io/travis/com/gitonomy/gitlib/1.2.svg?style=flat-square)](https://travis-ci.com/gitonomy/gitlib)
4+
[![Build Status](https://img.shields.io/github/workflow/status/gitonomy/gitlib/Tests/1.2?label=Tests&style=flat-square)](https://github.com/gitonomy/gitlib/actions?query=workflow%3ATests+branch%3A1.2)
55
[![StyleCI](https://github.styleci.io/repos/5709354/shield?branch=1.2)](https://github.styleci.io/repos/5709354?branch=1.2)
66
[![License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](https://opensource.org/licenses/MIT)
7+
[![Downloads](https://img.shields.io/packagist/dt/gitonomy/gitlib?style=flat-square)](https://packagist.org/packages/gitonomy/gitlib)
78

89
This library provides methods to access Git repository from PHP 5.6+.
910

0 commit comments

Comments
 (0)