-
Notifications
You must be signed in to change notification settings - Fork 194
60 lines (52 loc) · 1.57 KB
/
phpunit.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
name: PHPUnit
on:
push:
branches: [ "3.x" ]
pull_request:
branches: [ "3.x" ]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
name: PHP ${{ matrix.php-versions }}
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: [ '7.3', '7.4', '8.0', '8.1', '8.2' ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: composer, phive, phpunit
extensions: intl, json, mbstring, gd, xdebug, xml, sqlite3, sqlsrv, oci8, pgsql
coverage: xdebug
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install
run: |
pwd
ls -l
export cwd=`pwd`
composer self-update
cd ..
pwd
ls -l
git clone -b 3.x https://github.com/kenjis/ci-app-for-ci-phpunit-test.git
cd ci-app-for-ci-phpunit-test
rm application/tests/_ci_phpunit_test
composer update --prefer-dist --no-progress
mv vendor/kenjis/ci-phpunit-test vendor/kenjis/ci-phpunit-test.tmp
mv "$cwd" vendor/kenjis/ci-phpunit-test
php install.php
git checkout -- application/tests/Bootstrap.php
- name: Run test suite
run: |
cd ../ci-app-for-ci-phpunit-test
cd application/tests
../../vendor/bin/phpunit --coverage-text