-
-
Notifications
You must be signed in to change notification settings - Fork 0
92 lines (78 loc) · 2.95 KB
/
phpunit.yml
File metadata and controls
92 lines (78 loc) · 2.95 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# This workflow is provided via the organization template repository
#
# https://github.com/nextcloud/.github
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
name: PHPUnit
on: pull_request
permissions:
contents: read
concurrency:
group: phpunit-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
phpunit:
runs-on: ubuntu-latest
env:
APP_ENV: test
DATABASE_URL: pdo-mysql://root:root@127.0.0.1:4444/report
DATABASE_AKAUNTING_URL: pdo-mysql://root:root@127.0.0.1:4444/akaunting
AKAUNTING_COMPANY_ID: 1
AKAUNTING_FRRA_MES_PADRAO: 12
AKAUNTING_RESGATE_SALDO_IRPF_MES_PADRAO: 12
AKAUNTING_DISTRIBUICAO_SOBRAS_CATEGORY_ID: 35
AKAUNTING_PRODUCAO_COOPERATIVISTA_CATEGORY_ID: 11
AKAUNTING_FRRA_CATEGORY_ID: 33
AKAUNTING_ADIANTAMENTO_CATEGORY_ID: 34
AKAUNTING_PLANO_DE_SAUDE_CATEGORY_ID: 29
AKAUNTING_PARENT_DISPENDIOS_CLIENTE_CATEGORY_ID: 28
AKAUNTING_PARENT_DISPENDIOS_INTERNOS_CATEGORY_ID: 16
AKAUNTING_PARENT_ENTRADAS_CLIENTES_CATEGORY_ID: 45
AKAUNTING_IMPOSTOS_COFINS: '{"categoryId":40,"contactId":111,"taxId":1}'
AKAUNTING_IMPOSTOS_INSS_IRRF: '{"categoryId":38,"contactId":20,"taxId":2}'
AKAUNTING_IMPOSTOS_IRPF_RETIDO: '{"categoryId":42,"contactId":20,"taxId":2}'
AKAUNTING_IMPOSTOS_ISS: '{"categoryId":39,"contactId":111,"taxId":4}'
AKAUNTING_IMPOSTOS_PIS: '{"categoryId":41,"contactId":111,"taxId":3}'
AKAUNTING_IMPOSTOS_ITEM_ID: 14
AKAUNTING_PRODUCAO_COOPERATIVISTA_ITEM_IDS: '{"bruto":26,"INSS":28,"IRRF":29,"Plano":30,"Auxílio":32,"desconto":31,"frra":27}'
HOLYDAYS_LIST: br-rj
LOCALE: pt_BR
CNPJ_CLIENTES_INTERNOS: 00000000000191
CNPJ_COMPANY: 00000000000191
strategy:
matrix:
php-versions: ['8.4']
services:
mysql:
image: mysql
ports:
- 4444:3306/tcp
env:
MYSQL_HOST: localhost
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: report
options: --health-cmd="mysqladmin ping" --health-interval 5s --health-timeout 2s --health-retries 5
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up php ${{ matrix.php-versions }}
uses: shivammathur/setup-php@cf4cade2721270509d5b1c766ab3549210a39a2a # v2
with:
php-version: ${{ matrix.php-versions }}
coverage: none
ini-file: development
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set up dependencies
run: composer i
- name: Set up database
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
> .env
php ./bin/console doctrine:migrations:migrate -n
- name: PHPUnit
run: composer run test:unit
- name: Print logs
if: always()
run: |
cat var/log/test.log