forked from DavidePastore/codice-fiscale
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 1.01 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
name: Continuous Integration
on: [push, pull_request]
jobs:
quality:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Check PHP Version
run: php -v
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: PHP Unit tests
run: |
vendor/bin/phpunit --testsuite travis-ci
vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
- name: Upload code coverage data
run: php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover