File tree Expand file tree Collapse file tree 1 file changed +73
-1
lines changed
Expand file tree Collapse file tree 1 file changed +73
-1
lines changed Original file line number Diff line number Diff line change 1- /src/config/workflow.yaml
1+ name : " testing"
2+
3+ on :
4+ push :
5+ branches : [ master ]
6+ pull_request :
7+ branches : [ master ]
8+
9+ jobs :
10+ qa :
11+ name : Quality assurance
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - name : Checkout
16+ uses : actions/checkout@v4
17+
18+ - name : Validate composer.json and composer.lock
19+ run : composer validate
20+
21+ - name : Cache Composer packages
22+ id : composer-cache
23+ uses : actions/cache@v4
24+ with :
25+ path : vendor
26+ key : ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
27+ restore-keys : |
28+ ${{ runner.os }}-php-
29+
30+ - name : Install dependencies
31+ if : steps.composer-cache.outputs.cache-hit != 'true'
32+ run : composer install --prefer-dist --no-progress
33+
34+ - name : Coding Standard
35+ run : composer run-script cs
36+
37+ tests :
38+ name : Tests
39+ runs-on : ubuntu-latest
40+
41+ strategy :
42+ matrix :
43+ php :
44+ - 7.2
45+ - 7.3
46+ - 7.4
47+ - 8.0
48+ - 8.1
49+ - 8.2
50+ - 8.3
51+ - 8.4
52+
53+ steps :
54+ - name : Checkout
55+ uses : actions/checkout@v4
56+
57+ - name : Install PHP
58+ uses : shivammathur/setup-php@v2
59+ with :
60+ php-version : ${{ matrix.php }}
61+
62+ - name : Cache PHP dependencies
63+ uses : actions/cache@v4
64+ with :
65+ path : vendor
66+ key : ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
67+ restore-keys : ${{ runner.os }}-php-${{ matrix.php }}-composer-
68+
69+ - name : Install dependencies
70+ run : composer install --prefer-dist --no-progress
71+
72+ - name : Tests
73+ run : composer test
You can’t perform that action at this time.
0 commit comments