Skip to content

Commit ff40374

Browse files
GHA Workflow instead of TravisCI (#2)
1 parent 64ff268 commit ff40374

File tree

3 files changed

+50
-29
lines changed

3 files changed

+50
-29
lines changed

.github/workflows/tests.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
on:
2+
pull_request:
3+
schedule:
4+
- cron: "0 0 * * *"
5+
6+
concurrency:
7+
group: ${{ github.head_ref || 'cron' }}
8+
cancel-in-progress: true
9+
10+
jobs:
11+
tests:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
php-version:
16+
- '8.1'
17+
- '8.0'
18+
- '7.4'
19+
- '7.3'
20+
- '7.2'
21+
- '7.1'
22+
- '7.0'
23+
- '5.6'
24+
25+
name: PHP ${{ matrix.php-version }}
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v2
29+
with:
30+
ref: ${{ github.head_ref }}
31+
32+
- name: Install PHP
33+
uses: shivammathur/setup-php@v2
34+
with:
35+
php-version: ${{ matrix.php-version }}
36+
37+
- name: Install Dependencies
38+
run: composer require squizlabs/php_codesniffer phpmd/phpmd
39+
40+
- name: PHPUnit
41+
run: vendor/bin/phpunit
42+
43+
- name: PHPCS
44+
run: vendor/bin/phpcs --standard=PSR2 classes/ tests/
45+
46+
- name: PHPMD
47+
run: vendor/bin/phpmd classes/ text cleancode,codesize,controversial,design,naming,unusedcode

.travis.yml

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

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![.github/workflows/tests.yml](https://github.com/php-mock/php-mock-integration/actions/workflows/tests.yml/badge.svg)](https://github.com/php-mock/php-mock-integration/actions/workflows/tests.yml)
2+
13
# PHP-Mock integration package
24

35
This is a support package for PHP-Mock integration into other frameworks.
@@ -9,7 +11,7 @@ You'll find these integrations:
911

1012
- [php-mock/php-mock-prophecy](https://github.com/php-mock/php-mock-prophecy) - Prophecy (phpspec) integration
1113

12-
# License and authors
14+
## License and authors
1315

1416
This project is free and under the WTFPL.
1517
Responsable for this project is Markus Malkusch [email protected].
@@ -18,5 +20,3 @@ Responsable for this project is Markus Malkusch [email protected].
1820

1921
If you like PHP-Mock and feel generous donate a few Bitcoins here:
2022
[1335STSwu9hST4vcMRppEPgENMHD2r1REK](bitcoin:1335STSwu9hST4vcMRppEPgENMHD2r1REK)
21-
22-
[![Build Status](https://travis-ci.org/php-mock/php-mock-integration.svg?branch=master)](https://travis-ci.org/php-mock/php-mock-integration)

0 commit comments

Comments
 (0)