forked from webignition/uri
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 925 Bytes
/
Copy pathstatic.yml
File metadata and controls
42 lines (33 loc) · 925 Bytes
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
name: Static Analysis
on:
push:
branches:
- master
pull_request:
jobs:
phpstan:
name: PHPStan - PHP ${{ matrix.php }}
strategy:
matrix:
operating-system: [ ubuntu-latest ]
php: ['7.4', '8.0', '8.1']
runs-on: ${{ matrix.operating-system }}
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup php
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: Install Composer dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader
- name: PHPStan
run: composer static-analysis
actionlint:
name: Actionlint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Run actionlint
run: docker run --rm -v "$PWD:/repo" --workdir /repo rhysd/actionlint:latest -color