-
Notifications
You must be signed in to change notification settings - Fork 103
49 lines (40 loc) · 1.22 KB
/
continuous-integration.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
on:
pull_request:
types: [opened, reopened, edited, synchronize]
jobs:
run:
runs-on: ${{ matrix.operating-system }}
strategy:
max-parallel: 15
matrix:
operating-system: [ubuntu-latest]
php-versions: ['7.2', '7.3', '7.4', '8.0' ]
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
steps:
- name: Checkout
uses: actions/checkout@master
- name: Install PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php-versions }}
extensions: ast, mbstring, pdo
ini-values: "date.timezone=UTC"
coverage: PCOV
pecl: true
- name: Check PHP Version
run: php -v
- name: Check PHP Extensions
run: php -m
- name: Check Composer Version
run: composer -V
- name: Install Project Dependencies
run: composer install --dev --prefer-dist --optimize-autoloader --no-progress
- name: Lint Source
run: composer lint
- name: Test Source
run: composer test
- name: Upload Artifacts
uses: actions/upload-artifact@master
with:
name: coverage-report
path: build/coverage