forked from propelorm/PropelBundle
-
Notifications
You must be signed in to change notification settings - Fork 14
63 lines (54 loc) · 1.87 KB
/
CI 7.0.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: CI Branch 7.0
on:
push:
branches:
- '7.0'
pull_request:
branches:
- '7.0'
workflow_dispatch:
permissions:
contents: read
jobs:
testsuite:
name: "Test Suite"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version: [ '8.0.2', '8.1', '8.1', '8.2', '8.3' ]
symfony-version: [ '6.0', '6.1', '6.2', '6.3', '6.4', '7.0', '7.1' ]
steps:
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
#extensions: json, libxml, pdo, pdo_mysql, pdo_sqlite, pdo_pgsql, sqlite3
coverage: pcov
- name: Checkout
uses: actions/checkout@v4
- name: Composer get cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Composer cache dependencies
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-
- name: Composer update (Symfony version ${{ matrix.symfony-version }})
run: composer install --prefer-dist --no-interaction
- name: Run tests
if: matrix.php-version >= '8.1'
run: vendor/bin/phpunit --display-deprecations --display-notices --display-warnings --coverage-clover=Tests/coverage.xml
- name: Run tests
if: matrix.php-version < '8.1'
run: vendor/bin/phpunit --verbose --coverage-clover=Tests/coverage.xml
# - name: Code Coverage Report
# uses: codecov/codecov-action@v3
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# directory: ./Tests/
# files: ./Tests/coverage.xml
# fail_ci_if_error: true
# verbose: true