Skip to content

Commit 07e5252

Browse files
bullderMichael Garifullin
andauthored
Replace Travis by Github Actions (#80)
* create action * add matrix * fix notices * fix symfony/yaml version * continue on experimental * declare symfony/yaml as dev dependency * omit dev for composer * fix review * fix review Co-authored-by: Michael Garifullin <michael.garifullin@smartbox.com>
1 parent 2ee9356 commit 07e5252

4 files changed

Lines changed: 41 additions & 26 deletions

File tree

.github/workflows/tests.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Tests
2+
3+
on: [push]
4+
5+
jobs:
6+
tests:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
php-version:
11+
- 7.2
12+
- 7.3
13+
- 7.4
14+
symfony-version:
15+
- 4.4.0
16+
- ^5.0
17+
include:
18+
- php-version: 7.1
19+
symfony-version: 4.4.0
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
24+
- uses: shivammathur/setup-php@v2
25+
with:
26+
php-version: ${{ matrix.php-version }}
27+
coverage: none
28+
29+
- name: Install symfony version from matrix
30+
env:
31+
SYMFONY_VERSION: ${{ matrix.symfony-version }}
32+
run: composer require symfony/symfony:$SYMFONY_VERSION --no-update
33+
- name: Install dependencies
34+
run: composer update --prefer-dist --no-interaction
35+
- name: Code style check
36+
run: bin/coke
37+
- name: Unit tests
38+
run: bin/atoum

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
StatsdBundle [![Build Status](https://travis-ci.org/M6Web/StatsdBundle.png?branch=master)](https://travis-ci.org/M6Web/StatsdBundle)
1+
StatsdBundle [![Build Status](https://github.com/BedrockStreaming/StatsdBundle/actions/workflows/tests.yml/badge.svg)](https://github.com/BedrockStreaming/StatsdBundle/actions/workflows/tests.yml)
22
=======
33

44
## Bundle easing the [statsd](https://github.com/etsy/statsd/) usage.

composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
"symfony/event-dispatcher-contracts": "^1.1 || ^2.1",
2424
"symfony/http-kernel": "^4.4 || ^5.0",
2525
"symfony/property-access": "^4.4 || ^5.0",
26+
"symfony/validator": "^4.4 || ^5.0",
27+
"symfony/yaml": "^4.4 || ^5.0",
2628
"m6web/statsd": "^1.3"
2729
},
2830
"require-dev": {

0 commit comments

Comments
 (0)