-
Notifications
You must be signed in to change notification settings - Fork 15
44 lines (39 loc) · 1.2 KB
/
phpspec-task.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
name: PHPSpec-Tests
on: push
jobs:
phpspec-tests:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ ubuntu-20.04 ]
php-versions: [ '7.4', '8.0.12', '8.1', '8.2', '8.3' ]
name: Evaluate Behavior, ${{ matrix.php-versions }} on ${{ matrix.operating-system }}
steps:
# Get the source code
- name: Checkout
uses: actions/checkout@v2
# Prepare PHP
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: xdebug
env:
fail-fast: false
# Composer Install
- name: Composer Install
uses: php-actions/composer@v5
with:
php_version: ${{ matrix.php-versions }}
dev: yes
interaction: no
args: --prefer-source
version: 2
# Execute PHPSpec
- name: Execute PHPSpec
run: XDEBUG_MODE=coverage vendor/bin/phpspec --config=phpspec.yml run
# Push Coverage
- name: Push Coverage
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
run: vendor/bin/codacycoverage clover build/coverage.xml