Skip to content
This repository was archived by the owner on Dec 22, 2025. It is now read-only.

Commit 81db372

Browse files
authored
Merge pull request #18 from hellofresh/gh-actions
Migrated pipeline to GH Actions
2 parents 3341cfd + 2372bc6 commit 81db372

File tree

4 files changed

+42
-26
lines changed

4 files changed

+42
-26
lines changed

.github/workflows/testing.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Testing
2+
3+
on:
4+
push:
5+
branches: [ 1.x ]
6+
pull_request:
7+
branches: [ 1.x ]
8+
release:
9+
types:
10+
- created
11+
12+
jobs:
13+
test:
14+
name: Test
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
composer:
19+
- ""
20+
- --prefer-lowest
21+
steps:
22+
- name: Check out code
23+
uses: actions/checkout@v2
24+
- name: Setup PHP
25+
uses: shivammathur/setup-php@v2
26+
with:
27+
php-version: '7.0'
28+
tools: composer:v1
29+
- name: Install composer deps
30+
run: composer update ${{ matrix.composer }} -n
31+
- name: Run php-cs-fixer
32+
run: vendor/bin/php-cs-fixer fix --dry-run -v
33+
- name: Run PhpUnit
34+
run: vendor/bin/phpunit --coverage-clover=coverage.xml
35+
36+
- name: Upload coverage to Codecov
37+
uses: codecov/codecov-action@v1
38+
if: success()
39+
with:
40+
file: ./coverage.xml
41+
fail_ci_if_error: false

.travis.yml

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

README.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
1-
<p align="center">
2-
<a href="https://hellofresh.com">
3-
<img width="120" src="https://www.hellofresh.de/images/hellofresh/press/HelloFresh_Logo.png">
4-
</a>
5-
</p>
6-
71
# hellofresh/stats-php
82

9-
[![Build Status](https://travis-ci.org/hellofresh/stats-php.svg?branch=master)](https://travis-ci.org/hellofresh/stats-php)
103
[![codecov](https://codecov.io/gh/hellofresh/stats-php/branch/master/graph/badge.svg)](https://codecov.io/gh/hellofresh/stats-php)
114

125
> Generic Stats library written in PHP

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
}
2222
},
2323
"require": {
24-
"php": ">= 5.6",
24+
"php": ">= 7.0",
2525
"psr/http-message": "^1.0",
2626
"behat/transliterator": "^1.2",
2727
"psr/log": "^1.0"

0 commit comments

Comments
 (0)