-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (55 loc) · 1.41 KB
/
checks.yaml
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
62
63
64
65
66
name: branch
on:
pull_request:
types:
- opened
- synchronize
permissions:
actions: read
contents: read
jobs:
security:
permissions:
contents: read
checks: read
statuses: read
security-events: write
uses: affinidi/pipeline-security/.github/workflows/security-scanners.yml@main
with:
config-path: .github/labeler.yml
secrets: inherit
validate-package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v4
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Validate dependencies
uses: php-actions/composer@master
with:
command: validate
- name: Install dependencies
uses: php-actions/composer@v6
- name: Lint PHP files
uses: overtrue/phplint@main
with:
path: .
options: --exclude=vendor
- name: create empty .env file.
run: echo "" > tests/Helpers/.env
- uses: php-actions/phpstan@v3
with:
path: src/AuthProvider,src/Common
level: 5
memory_limit: 2048m