Skip to content

Commit c7df3e3

Browse files
committed
Run tests on GitHub Actions
1 parent 586dcd4 commit c7df3e3

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/php.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ develop ]
6+
pull_request:
7+
branches: [ develop ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
php-version:
16+
- "7.3"
17+
- "7.4"
18+
- "8.0"
19+
dependencies:
20+
- "lowest"
21+
- "highest"
22+
23+
name: Tests with PHP ${{ matrix.php-version }} and ${{ matrix.dependencies }} dependencies
24+
25+
steps:
26+
- uses: actions/checkout@v2
27+
28+
- name: Setup PHP
29+
uses: shivammathur/setup-php@v2
30+
with:
31+
php-version: ${{ matrix.php-version }}
32+
env:
33+
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
35+
- name: Validate composer
36+
run: composer validate
37+
38+
- name: Composer install
39+
uses: "ramsey/composer-install@v1"
40+
with:
41+
dependency-versions: "${{ matrix.dependencies }}"
42+
composer-options: "${{ matrix.composer-options }}"
43+
44+
- name: Run unit tests suite
45+
run: vendor/bin/phpunit

0 commit comments

Comments
 (0)