File tree 4 files changed +60
-21
lines changed
4 files changed +60
-21
lines changed Original file line number Diff line number Diff line change 1
1
/.gitattributes export-ignore
2
2
/.gitignore export-ignore
3
- /.travis.yml export-ignore
3
+ /.github / export-ignore
4
4
/CONTRIBUTING.md export-ignore
5
5
/fixtures / export-ignore
6
6
/phpunit.xml.dist export-ignore
Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ push :
5
+ pull_request :
6
+ # Allow manually triggering the workflow.
7
+ workflow_dispatch :
8
+
9
+ # Cancels all previous workflow runs for the same branch that have not yet completed.
10
+ concurrency :
11
+ group : ${{ github.workflow }}-${{ github.ref }}
12
+ cancel-in-progress : true
13
+
14
+ jobs :
15
+ check_composer :
16
+ name : Check composer.json
17
+ runs-on : ubuntu-latest
18
+ steps :
19
+ - name : Checkout code
20
+ uses : actions/checkout@v2
21
+
22
+ - name : Setup PHP
23
+ uses : shivammathur/setup-php@v2
24
+ with :
25
+ php-version : ' 8.0'
26
+ coverage : none
27
+
28
+ - name : Validate composer.json
29
+ run : composer validate --strict --no-check-lock
30
+
31
+ test :
32
+ runs-on : ubuntu-latest
33
+
34
+ strategy :
35
+ fail-fast : false
36
+ matrix :
37
+ php : ['7.3', '7.4', '8.0', '8.1']
38
+
39
+ name : PHP ${{ matrix.php }}
40
+
41
+ steps :
42
+ - name : Checkout code
43
+ uses : actions/checkout@v2
44
+
45
+ - name : Setup PHP
46
+ uses : shivammathur/setup-php@v2
47
+ with :
48
+ php-version : ${{ matrix.php }}
49
+ ini-values : zend.assertions=1, error_reporting=-1, display_errors=On
50
+ coverage : xdebug
51
+
52
+ # Install dependencies and handle caching in one go.
53
+ # @link https://github.com/marketplace/actions/install-composer-dependencies
54
+ - name : Install Composer dependencies
55
+ uses : " ramsey/composer-install@v1"
56
+
57
+ - name : Execute Unit Tests
58
+ run : vendor/bin/phpunit --coverage-text
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
# Prophecy
2
2
3
- [ ![ Build Status] ( https://travis-ci.org /phpspec/prophecy-phpunit.png?branch=master )] ( https://travis-ci.org /phpspec/prophecy-phpunit )
3
+ [ ![ Build Status] ( https://github.com /phpspec/prophecy-phpunit/actions/workflows/ci.yml/badge.svg )] ( https://github.com /phpspec/prophecy-phpunit/actions/workflows/ci.yml )
4
4
5
5
Prophecy PhpUnit integrates the [ Prophecy] ( https://github.com/phpspec/prophecy ) mocking
6
6
library with [ PHPUnit] ( https://phpunit.de ) to provide an easier mocking in your testsuite.
You can’t perform that action at this time.
0 commit comments