-
Notifications
You must be signed in to change notification settings - Fork 11
51 lines (49 loc) · 1.37 KB
/
static-analysis.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
name: Static analysis
on:
- pull_request
jobs:
static-psalm-analysis:
runs-on: ubuntu-latest
strategy:
matrix: # https://docs.github.com/en/actions/using-jobs/using-a-build-matrix-for-your-jobs
ocp:
- 'dev-stable24'
- 'dev-stable25'
- 'dev-stable26'
- 'dev-stable27'
- 'dev-stable28'
- 'dev-master'
php:
- '8.0'
- '8.1'
- '8.2'
- '8.3'
include:
- ocp: 'dev-stable24'
php: '8.0'
- ocp: 'dev-stable25'
php: '8.1'
- ocp: 'dev-stable26'
php: '8.2'
- ocp: 'dev-stable27'
php: '8.2'
- ocp: 'dev-stable28'
php: '8.3'
- ocp: 'dev-master'
php: '8.3'
name: Nextcloud ${{ matrix.ocp }} on PHP ${{ matrix.php }}
steps:
- name: Checkout
uses: actions/checkout@master
- name: Set up php
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php }}"
tools: composer:v2
coverage: none
- name: Remove PHP lockfile
run: rm composer.lock
- name: Install dependencies
run: composer require --dev nextcloud/ocp:${{ matrix.ocp }}
- name: Run coding standards check
run: composer run -- psalm --php-version=${{ matrix.php }}