-
Notifications
You must be signed in to change notification settings - Fork 4
56 lines (48 loc) · 1.33 KB
/
noverify.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
name: "NoVerify"
on:
push:
branches:
- main
paths-ignore:
- '**.md'
- '.editorconfig'
- '.gitattributes'
- '.github/workflows/ci.yml'
- '.github/workflows/sonar.yml'
- 'LICENSE'
- 'scripts/**'
- 'sonar-project.properties'
pull_request:
paths-ignore:
- '**.md'
- '.editorconfig'
- '.gitattributes'
- '.github/workflows/ci.yml'
- '.github/workflows/sonar.yml'
- 'LICENSE'
- 'scripts/**'
- 'sonar-project.properties'
# Allow manually triggering the workflow
workflow_dispatch:
jobs:
noverify:
name: "Analyze with NoVerify"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout"
uses: "actions/checkout@v3"
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
ini-values: "error_reporting=-1, display_errors=On, display_startup_errors=On, zend.assertions=1"
tools: composer:v2
php-version: "8.0"
- name: "Install dependencies"
run: "composer install --no-interaction --no-progress --prefer-dist"
- name: "Install NoVerify"
run: |
composer require --dev vkcom/noverify
./vendor/bin/noverify-get
- name: "Run NoVerify"
run: "./vendor/bin/noverify check ./src"