-
-
Notifications
You must be signed in to change notification settings - Fork 6
56 lines (54 loc) · 1.24 KB
/
ci-management.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
name: CI Triggers
on:
push:
paths:
- '.circleci/**'
- 'src/**'
- 'tests/**'
branches:
- master
pull_request:
types: [opened, reopened, synchronize]
paths:
- '.circleci/**'
- 'src/**'
- 'tests/**'
branches:
- master
jobs:
phpstan:
runs-on: ubuntu-latest
name: PHPStan Report
steps:
- uses: actions/checkout@v2
- uses: php-actions/composer@v6
with:
php_extensions: gmp bcmath
- uses: php-actions/phpstan@v3
with:
path: src/
level: 3
memory_limit: 512M
phpmetrics:
runs-on: ubuntu-latest
name: PHPMetrics Report
steps:
- name: Checkout
uses: actions/checkout@v2
- name: PhpMetrics Scan
uses: umutphp/phpmetrics-action@v1
with:
folder: './src'
- name: Upload HTML Report
uses: actions/upload-artifact@v1
with:
name: HTML Report
path: phpmetrics.html
trigger-circle-ci:
runs-on: ubuntu-latest
name: Trigger Circle CI Workflow
steps:
- name: Trigger CircleCI Pipeline
uses: CircleCI-Public/[email protected]
env:
CCI_TOKEN: ${{ secrets.CCI_TOKEN }}