-
-
Notifications
You must be signed in to change notification settings - Fork 128
52 lines (48 loc) · 1.44 KB
/
quality.yml
File metadata and controls
52 lines (48 loc) · 1.44 KB
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
name: Quality
on: [push]
jobs:
lint_php:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [ "8.2" ]
steps:
- uses: actions/checkout@v6
- name: "Setup PHP ${{ matrix.php-version }}"
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php-version }}"
coverage: "none"
- name: "Run phplint"
run: |
curl -Ls https://github.com/overtrue/phplint/releases/download/9.0.3/phplint.phar -o /usr/local/bin/phplint
chmod +x /usr/local/bin/phplint
/usr/local/bin/phplint -vvv --no-cache
lint_openapi:
runs-on: ubuntu-latest
needs: [lint_php]
steps:
- uses: actions/checkout@v6
- name: Lint OpenAPI spec
uses: vaibhav-jain/spectral-action/@v2.6
with:
file_path: pfSense-pkg-API/files/usr/local/www/api/documentation/openapi.yml
lint_python:
runs-on: ubuntu-latest
needs: [lint_php]
strategy:
matrix:
python-version: ["3.10", "3.11"]
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py')