mirror of
https://github.com/opdavies/glassboxx-sdk-php.git
synced 2025-02-17 22:50:48 +00:00
Merge fa7f146609 into 7d8a2dffc5
This commit is contained in:
commit
cc27a262ea
2 changed files with 16 additions and 5 deletions
16
.github/workflows/ci.yml
vendored
16
.github/workflows/ci.yml
vendored
|
|
@ -1,6 +1,7 @@
|
||||||
|
---
|
||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
on:
|
on: # yamllint disable-line rule:truthy
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
|
|
||||||
|
|
@ -13,7 +14,10 @@ jobs:
|
||||||
php: [7.3, 7.4]
|
php: [7.3, 7.4]
|
||||||
dependency-version: [prefer-lowest, prefer-stable]
|
dependency-version: [prefer-lowest, prefer-stable]
|
||||||
|
|
||||||
name: P${{ matrix.php }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
|
name: >
|
||||||
|
P${{ matrix.php }}-
|
||||||
|
${{ matrix.dependency-version }}-
|
||||||
|
${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
|
|
@ -23,7 +27,10 @@ jobs:
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: ~/.composer/cache/files
|
path: ~/.composer/cache/files
|
||||||
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
|
key: >
|
||||||
|
dependencies-
|
||||||
|
php-${{ matrix.php }}-
|
||||||
|
composer-${{ hashFiles('composer.json') }}
|
||||||
|
|
||||||
- name: Setup PHP
|
- name: Setup PHP
|
||||||
uses: shivammathur/setup-php@v1
|
uses: shivammathur/setup-php@v1
|
||||||
|
|
@ -34,7 +41,8 @@ jobs:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
composer install
|
composer install
|
||||||
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
|
composer update --${{ matrix.dependency-version }} \
|
||||||
|
--prefer-dist --no-interaction --no-suggest
|
||||||
|
|
||||||
- name: Execute tests
|
- name: Execute tests
|
||||||
run: make test
|
run: make test
|
||||||
|
|
|
||||||
5
Makefile
5
Makefile
|
|
@ -6,4 +6,7 @@ phpcs:
|
||||||
phpunit:
|
phpunit:
|
||||||
php vendor/bin/phpunit -v --color=always --testdox tests
|
php vendor/bin/phpunit -v --color=always --testdox tests
|
||||||
|
|
||||||
test: phpunit phpcs
|
test: phpunit phpcs yamllint
|
||||||
|
|
||||||
|
yamllint:
|
||||||
|
yamllint .github/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue