Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 75d304a

Browse files
committed
Run PHPUnit on GitHub Actions
1 parent 26068fa commit 75d304a

File tree

2 files changed

+49
-53
lines changed

2 files changed

+49
-53
lines changed

.github/workflows/ci.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
8+
jobs:
9+
test:
10+
name: 'Test ${{ matrix.deps }} on PHP ${{ matrix.php }}'
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
php: ['7.1.3', '7.2' '7.3', '7.4', '8.0']
17+
include:
18+
- php: '7.4'
19+
deps: lowest
20+
deprecations: max[self]=0
21+
- php: '8.0'
22+
deps: highest
23+
24+
steps:
25+
- name: Checkout code
26+
uses: actions/checkout@v2
27+
28+
- name: Setup PHP
29+
uses: shivammathur/setup-php@v2
30+
with:
31+
php-version: '${{ matrix.php }}'
32+
coverage: none
33+
34+
- name: Configure composer
35+
if: "${{ matrix.deps == 'highest' }}"
36+
run: composer config minimum-stability dev
37+
38+
- name: Composer install
39+
uses: ramsey/composer-install@v1
40+
with:
41+
dependency-versions: '${{ matrix.deps }}'
42+
43+
- name: Install PHPUnit
44+
run: vendor/bin/simple-phpunit install
45+
46+
- name: Run tests
47+
run: vendor/bin/simple-phpunit
48+
env:
49+
SYMFONY_DEPRECATIONS_HELPER: '${{ matrix.deprecations }}'

.travis.yml

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

0 commit comments

Comments
 (0)