-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (37 loc) · 1 KB
/
php.yml
File metadata and controls
48 lines (37 loc) · 1 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
---
name: PHP Composer
on:
push:
branches: [ "main","develop","tests" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Validate Composer manifest
run: composer validate --strict
- name: Cache Composer dependencies
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json','**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Install dependencies
run: make install
- name: Lint code (PSR-12)
run: make lint
- name: Run PHPUnit tests
run: make test
- name: Upload PHPUnit report
uses: actions/upload-artifact@v4
with:
name: phpunit-report
path: .phpunit.junit.xml
include-hidden-files: true