This repository has been archived by the owner on Sep 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 750
114 lines (98 loc) · 3.46 KB
/
tests.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
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
name: Unit tests
on:
push:
branches:
- developer
pull_request:
branches:
- developer
jobs:
tests80:
runs-on: ubuntu-latest
name: PHP 8.0 - MariaDB 10.5
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Tests
uses: YetiForceCompany/YetiForceCRM-Tests/8.0@main
env:
YETI_TEST_MODULE_KEY: ${{ secrets.YETI_TEST_MODULE_KEY }}
YETI_MAIL_PASS: ${{ secrets.YETI_MAIL_PASS }}
tests81:
runs-on: ubuntu-latest
name: PHP 8.1 - MariaDB 10.5
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Tests
uses: YetiForceCompany/YetiForceCRM-Tests/8.1@main
env:
YETI_TEST_MODULE_KEY: ${{ secrets.YETI_TEST_MODULE_KEY }}
YETI_MAIL_PASS: ${{ secrets.YETI_MAIL_PASS }}
tests80jit:
runs-on: ubuntu-latest
name: PHP 8.0 JIT - MariaDB 10.5
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Tests
uses: YetiForceCompany/YetiForceCRM-Tests/8.0-JIT@main
env:
YETI_TEST_MODULE_KEY: ${{ secrets.YETI_TEST_MODULE_KEY }}
YETI_MAIL_PASS: ${{ secrets.YETI_MAIL_PASS }}
tests81jit:
runs-on: ubuntu-latest
name: PHP 8.1 JIT - MariaDB 10.5
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Tests
uses: YetiForceCompany/YetiForceCRM-Tests/8.1-JIT@main
env:
YETI_TEST_MODULE_KEY: ${{ secrets.YETI_TEST_MODULE_KEY }}
YETI_MAIL_PASS: ${{ secrets.YETI_MAIL_PASS }}
coverage:
needs: tests80
runs-on: ubuntu-latest
name: Code Coverage
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Tests
uses: YetiForceCompany/YetiForceCRM-Tests/coverage@main
env:
YETI_TEST_MODULE_KEY: ${{ secrets.YETI_TEST_MODULE_KEY }}
YETI_MAIL_PASS: ${{ secrets.YETI_MAIL_PASS }}
CODACY_PROJECT_TOKEN: ${{ secrets.YETI_CODACY_PROJECT_TOKEN }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: PHP info
run: |
whereis php
apt list --installed | grep php
dpkg --get-selections | grep php
- name: Scrutinizer CI
run: |
wget https://scrutinizer-ci.com/ocular.phar --quiet
/usr/bin/php8.0 ocular.phar code-coverage:upload --format=php-clover ${{github.workspace}}/tests/coverages/coverage.xml
- name: Code Climate - Test & publish code coverage
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
with:
coverageLocations: ${{github.workspace}}/tests/coverages/coverage3.xml:clover
- name: Upload artifact Coverages
uses: actions/upload-artifact@v3
with:
name: Coverages
path: ${{github.workspace}}/tests/coverages
- name: Upload artifact Logs
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: Logs
path: ${{github.workspace}}/cache/logs/