File tree Expand file tree Collapse file tree 3 files changed +40
-26
lines changed Expand file tree Collapse file tree 3 files changed +40
-26
lines changed Original file line number Diff line number Diff line change
1
+ name : PHP Composer
2
+
3
+ on :
4
+ push :
5
+ branches : [ master ]
6
+ pull_request :
7
+ branches : [ master ]
8
+
9
+ jobs :
10
+ build :
11
+
12
+ runs-on : ubuntu-latest
13
+ strategy :
14
+ matrix :
15
+ php : [7.3, 7.4, 8.0]
16
+
17
+ steps :
18
+ - uses : actions/checkout@v2
19
+
20
+ - name : Validate composer.json and composer.lock
21
+ run : composer validate --strict
22
+
23
+ - name : Cache Composer packages
24
+ id : composer-cache
25
+ uses : actions/cache@v2
26
+ with :
27
+ path : vendor
28
+ key : ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
29
+ restore-keys : |
30
+ ${{ runner.os }}-php-
31
+
32
+ - name : Install dependencies
33
+ run : composer install --prefer-dist --no-progress
34
+
35
+ # Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
36
+ # Docs: https://getcomposer.org/doc/articles/scripts.md
37
+
38
+ - name : Run test suite
39
+ run : composer run test
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
# PHP GraphQL Client
2
- [ ![ Build
3
- Status] ( https://travis-ci.org/mghoneimy/php-graphql-client.svg?branch=master )] ( https://travis-ci.org/mghoneimy/php-graphql-client )
4
- [ ![ Codacy
5
- Badge] ( https://api.codacy.com/project/badge/Grade/cb5e0708c4244c1a848be668dbcda8b0 )] ( https://app.codacy.com/app/mghoneimy/php-graphql-client?utm_source=github.com&utm_medium=referral&utm_content=mghoneimy/php-graphql-client&utm_campaign=Badge_Grade_Dashboard )
6
- [ ![ Codacy
7
- Badge] ( https://api.codacy.com/project/badge/Coverage/c2b0ae3a556547c38e1247d63228adde )] ( https://www.codacy.com/app/mghoneimy/php-graphql-client?utm_source=github.com&utm_medium=referral&utm_content=mghoneimy/php-graphql-client&utm_campaign=Badge_Coverage )
2
+ ![ Build Status] ( https://github.com/mghoneimy/php-graphql-client/actions/workflows/php.yml/badge.svg )
8
3
[ ![ Total
9
4
Downloads] ( https://poser.pugx.org/gmostafa/php-graphql-client/downloads )] ( https://packagist.org/packages/gmostafa/php-graphql-client )
10
5
[ ![ Latest Stable
You can’t perform that action at this time.
0 commit comments