Skip to content

Commit 6b65248

Browse files
committed
[CI] Migrate to GH actions
No coverage for now, can come later
1 parent 836f793 commit 6b65248

File tree

4 files changed

+118
-94
lines changed

4 files changed

+118
-94
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
name: "Coding Standards"
3+
4+
on:
5+
push:
6+
branches:
7+
- master
8+
pull_request:
9+
10+
jobs:
11+
coding-standards:
12+
name: "Coding Standards"
13+
runs-on: "ubuntu-latest"
14+
15+
steps:
16+
- name: "Checkout"
17+
uses: "actions/checkout@v2"
18+
- name: "PHP-CS-Fixer"
19+
uses: "docker://oskarstark/php-cs-fixer-ga:2.19.0"
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
2+
name: "Continuous Integration"
3+
4+
on:
5+
push:
6+
branches:
7+
- master
8+
pull_request:
9+
10+
jobs:
11+
phpunit:
12+
name: "PHPUnit"
13+
runs-on: "ubuntu-latest"
14+
env:
15+
SYMFONY_REQUIRE: ${{matrix.symfony-require}}
16+
SYMFONY_DEPRECATIONS_HELPER: ${{matrix.symfony-deprecations-helper}}
17+
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
php-version:
22+
- "7.3"
23+
- "7.4"
24+
- "8.0"
25+
dependencies:
26+
- "php-http/guzzle6-adapter"
27+
stability:
28+
- "stable"
29+
symfony-require:
30+
- ""
31+
symfony-deprecations-helper:
32+
- ""
33+
composer-options:
34+
- ""
35+
include:
36+
# Minimum supported Symfony version and lowest PHP version
37+
- dependencies: "php-http/guzzle7-adapter"
38+
php-version: "7.3"
39+
composer-options: "--prefer-stable --prefer-lowest"
40+
symfony-deprecations-helper: "weak"
41+
42+
# Test the latest stable release
43+
- dependencies: "php-http/guzzle7-adapter php-http/vcr-plugin:^1.0@dev"
44+
php-version: "7.3"
45+
- php-version: "7.4"
46+
- php-version: "8.0"
47+
48+
# Test with httplug 1.x clients
49+
- dependencies: "php-http/buzz-adapter:^1.0 php-http/guzzle6-adapter:^1.1.1 php-http/react-adapter:^0.2.1 php-http/socket-client:^1.0"
50+
php-version: "7.3"
51+
# Test with httplug 2.x clients
52+
- dependencies: "php-http/guzzle7-adapter php-http/curl-client:^2.0.0 php-http/vcr-plugin:^1.0@dev"
53+
php-version: "7.3"
54+
55+
# Latest commit to master
56+
- dependencies: "php-http/guzzle7-adapter php-http/vcr-plugin:^1.0@dev"
57+
php-version: "7.0"
58+
stability: "dev"
59+
- php-version: "8.0"
60+
stability: "dev"
61+
62+
# Test maintained versions of Symfony
63+
- symfony-require: "3.4.*"
64+
php-version: "7.3"
65+
- dependencies: "php-http/guzzle7-adapter symfony/http-client:^4.4"
66+
symfony-require: "4.4.*"
67+
php-version: "7.3"
68+
- dependencies: "php-http/guzzle7-adapter symfony/http-client:^5.0"
69+
symfony-require: "5.0.*"
70+
php-version: "7.3"
71+
72+
steps:
73+
- name: "Checkout"
74+
uses: "actions/checkout@v2"
75+
with:
76+
fetch-depth: 2
77+
78+
- name: "Install PHP with PCOV"
79+
uses: "shivammathur/setup-php@v2"
80+
with:
81+
php-version: "${{ matrix.php-version }}"
82+
coverage: "pcov"
83+
ini-values: "zend.assertions=1"
84+
85+
- name: "Enforce using stable dependencies"
86+
run: "composer config minimum-stability stable"
87+
if: "${{ matrix.stability == 'stable' }}"
88+
89+
- name: "Install dependencies"
90+
run: "composer require --no-progress --no-scripts --no-plugins symfony/flex ${{ matrix.dependencies }}"
91+
92+
- name: "Install dependencies with Composer"
93+
uses: "ramsey/composer-install@v1"
94+
with:
95+
dependency-versions: "${{ matrix.dependencies }}"
96+
composer-options: "${{ matrix.composer-options }}"
97+
98+
- name: "Run PHPUnit"
99+
run: "composer test"

.scrutinizer.yml

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

.travis.yml

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

0 commit comments

Comments
 (0)