-
Notifications
You must be signed in to change notification settings - Fork 24
61 lines (49 loc) · 1.41 KB
/
actions.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
name: PHP actions
on: push
jobs:
composer:
name: Composer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Validate composer.json and composer.lock
run: composer validate
- name: Cache Composer dependencies
uses: actions/cache@v3
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
code:
name: Code
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: PHP VarDump Check Action
uses: umutphp/php-var-dump-check-action@v2
with:
exclude: 'vendor,tests'
- name: Check PHP syntax errors
uses: overtrue/[email protected]
- name: DevSkim
uses: microsoft/DevSkim-Action@v1
- name: codecov.io/validate
run: curl --data-binary @codecov.yml https://codecov.io/validate
security:
name: Security
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: PHP Security Checker
uses: StephaneBour/[email protected]
with:
composer-lock: './composer.lock'