-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (39 loc) · 1.1 KB
/
code-quality.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
name: 'Code Quality Checks'
on:
workflow_dispatch:
pull_request:
types:
- opened
- synchronize
push:
branches:
- main
- develop
jobs:
coding-standards:
name: 'Coding Standards'
uses: ./.github/workflows/phpcs.yml
secrets:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
OP_VAULT: ${{ secrets.OP_VAULT }}
OP_ITEM: ${{ secrets.OP_ITEM }}
linting:
name: 'Linting'
uses: ./.github/workflows/linting.yml
phpstan:
name: 'Static Analysis'
needs: [coding-standards, linting]
uses: ./.github/workflows/static-analysis.yml
secrets:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
OP_VAULT: ${{ secrets.OP_VAULT }}
OP_ITEM: ${{ secrets.OP_ITEM }}
# Enable this job if you have PHPUnit tests
# slic:
# name: 'PHP Tests'
# needs: [coding-standards, phpstan, linting]
# uses: ./.github/workflows/php-tests.yml
# secrets:
# OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
# OP_VAULT: ${{ secrets.OP_VAULT }}
# OP_ITEM: ${{ secrets.OP_ITEM }}