-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (41 loc) · 1.26 KB
/
ci.yml
File metadata and controls
51 lines (41 loc) · 1.26 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
name: CI
on:
push:
branches:
- master
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
toos: composer
- name: Install Composer dependencies
run: composer install --no-progress --no-suggest
- name: Run PHP tests read only
env:
BHEXPRESS_API_TOKEN: ${{ secrets.BHEXPRESS_API_TOKEN }}
BHEXPRESS_EMISOR_RUT: ${{ vars.BHEXPRESS_EMISOR_RUT }}
run: |
composer tests-readonly
- name: Upload pytest result report
if: failure()
uses: actions/upload-artifact@v4
with:
name: tests-results-python_${{ matrix.python-version }}.xml
path: var/tests-results.xml
- name: Upload Coverage Report
uses: actions/upload-artifact@v4
with:
name: tests-coverage-python_${{ matrix.python-version }}.xml
path: var/tests-coverage.xml
- name: Display PHP version
run: php -v