-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (44 loc) · 1.32 KB
/
ci.yml
File metadata and controls
54 lines (44 loc) · 1.32 KB
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
name: CI
on:
push:
branches:
- master
env:
env_var: ${{ vars.ENV_CONTEXT_VAR }}
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: ['8.5']
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Setup PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: curl, mbstring, intl, xdebug
tools: composer
- name: Install Composer dependencies
run: composer install --no-progress --no-suggest
- name: Run PHP tests readonly
env:
CONTAFI_API_TOKEN: ${{ secrets.CONTAFI_API_TOKEN }}
CONTAFI_CONTRIBUYENTE_RUT: ${{ vars.CONTAFI_CONTRIBUYENTE_RUT }}
ADD_SKIPPED: true
run: |
composer tests-readonly
- name: Upload PHPUnit result report
if: failure()
uses: actions/upload-artifact@v4
with:
name: tests-testdox-php_${{ matrix.php-version }}.txt
path: var/tests-testdox.txt
- name: Upload Coverage Report
uses: actions/upload-artifact@v4
with:
name: tests-coverage-php_${{ matrix.php-version }}.txt
path: var/tests-coverage.txt
- name: Display PHP version
run: php -v