Repository navigation
100 lines (79 loc) · 2.65 KB
/
Copy pathcode-quality.yml
File metadata and controls
100 lines (79 loc) · 2.65 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: Code Quality
on:
pull_request:
branches: [main]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
pint:
runs-on: ubuntu-latest
timeout-minutes: 15
name: Laravel Pint
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Setup PHP
uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # 2.40.0
with:
php-version: 8.5
extensions: dom, curl, libxml, mbstring, zip
coverage: none
- name: Install dependencies
run: composer update --prefer-stable --prefer-dist --no-interaction
- name: Run Laravel Pint
run: composer pint
phpstan:
runs-on: ubuntu-latest
timeout-minutes: 15
name: PHPStan
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Setup PHP
uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # 2.40.0
with:
php-version: 8.5
extensions: dom, curl, libxml, mbstring, zip
coverage: none
- name: Install dependencies
run: composer update --prefer-stable --prefer-dist --no-interaction
- name: Run PHPStan
run: composer analyse
security:
runs-on: ubuntu-latest
timeout-minutes: 15
name: Security Audit
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Setup PHP
uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # 2.40.0
with:
php-version: 8.5
extensions: dom, curl, libxml, mbstring, zip
coverage: none
- name: Install dependencies
run: composer update --prefer-stable --prefer-dist --no-interaction
- name: Security Audit
run: composer audit
actionlint:
name: Workflow lint
runs-on: ubuntu-latest
timeout-minutes: 5
# Nothing else reads these files until a tag is pushed. `release.yml` triggers
# on `push: tags`, so until now a broken workflow was first observed as a
# release that refused to start -- after the decision to release had been made.
#
# A YAML parse is not a substitute. `yaml.safe_load` accepts a duplicate key
# and silently keeps the last one, which is how a double-applied patch shipped
# a step carrying `continue-on-error:` twice and still validated clean.
# actionlint rejects what Actions rejects.
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: actionlint
uses: raven-actions/actionlint@3d39aea434753780c3b3d4a1a31c854b4dbf49d7 # v2.2.0