mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
chore: runs formats testing in ubuntu only
This commit is contained in:
@ -9,11 +9,11 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: true
|
fail-fast: true
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest]
|
os: [ubuntu-latest]
|
||||||
php: [7.3, 7.4]
|
php: [7.4]
|
||||||
dependency-version: [prefer-lowest, prefer-stable]
|
dependency-version: [prefer-lowest, prefer-stable]
|
||||||
|
|
||||||
name: CI - PHP ${{ matrix.php }} (${{ matrix.dependency-version }}) - ${{ matrix.os }}
|
name: Formats ${{ matrix.php }} (${{ matrix.dependency-version }}) - ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
@ -44,9 +44,3 @@ jobs:
|
|||||||
|
|
||||||
- name: Type Checks
|
- name: Type Checks
|
||||||
run: vendor/bin/phpstan analyse --ansi
|
run: vendor/bin/phpstan analyse --ansi
|
||||||
|
|
||||||
- name: Unit Tests
|
|
||||||
run: bin/pest --colors=always --exclude-group=integration
|
|
||||||
|
|
||||||
- name: Integration Tests
|
|
||||||
run: bin/pest --colors=always --group=integration
|
|
||||||
44
.github/workflows/tests.yml
vendored
Normal file
44
.github/workflows/tests.yml
vendored
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
name: Continuous Integration
|
||||||
|
|
||||||
|
on: ['push', 'pull_request']
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
ci:
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: true
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||||
|
php: [7.3, 7.4]
|
||||||
|
dependency-version: [prefer-lowest, prefer-stable]
|
||||||
|
|
||||||
|
name: Tests ${{ matrix.php }} (${{ matrix.dependency-version }}) - ${{ matrix.os }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Cache dependencies
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: ~/.composer/cache/files
|
||||||
|
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
|
||||||
|
|
||||||
|
- name: Setup PHP
|
||||||
|
uses: shivammathur/setup-php@v2
|
||||||
|
with:
|
||||||
|
php-version: ${{ matrix.php }}
|
||||||
|
extensions: mbstring, zip
|
||||||
|
tools: prestissimo
|
||||||
|
coverage: pcov
|
||||||
|
|
||||||
|
- name: Install Composer dependencies
|
||||||
|
run: composer update --${{ matrix.dependency-version }} --no-interaction --prefer-dist
|
||||||
|
|
||||||
|
- name: Unit Tests
|
||||||
|
run: bin/pest --colors=always --exclude-group=integration
|
||||||
|
|
||||||
|
- name: Integration Tests
|
||||||
|
run: bin/pest --colors=always --group=integration
|
||||||
Reference in New Issue
Block a user