2020-10-23 09:28:38 +00:00
|
|
|
name: Static analysis
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- stable*
|
|
|
|
|
2022-04-21 00:05:02 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2020-10-23 09:28:38 +00:00
|
|
|
jobs:
|
|
|
|
static-psalm-analysis:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-12-12 16:49:27 +00:00
|
|
|
ocp-version: [ 'v25.0.0']
|
2022-04-05 14:40:05 +00:00
|
|
|
php-version: [ '7.4' ]
|
|
|
|
include:
|
2022-12-12 16:49:27 +00:00
|
|
|
- ocp-version: 'v25.0.0'
|
2022-04-05 14:40:05 +00:00
|
|
|
php-version: '8.0'
|
2022-12-12 16:49:27 +00:00
|
|
|
- ocp-version: 'v25.0.0'
|
2022-07-11 12:58:56 +00:00
|
|
|
php-version: '8.1'
|
2020-10-23 09:28:38 +00:00
|
|
|
|
|
|
|
name: Nextcloud ${{ matrix.ocp-version }}
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@master
|
|
|
|
|
|
|
|
- name: Set up php
|
2022-03-01 14:10:40 +00:00
|
|
|
uses: shivammathur/setup-php@v2
|
2020-10-23 09:28:38 +00:00
|
|
|
with:
|
2021-01-23 10:59:18 +00:00
|
|
|
php-version: ${{ matrix.php-version }}
|
|
|
|
coverage: none
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: composer i
|
|
|
|
|
|
|
|
- name: Install dependencies
|
2022-12-12 19:29:03 +00:00
|
|
|
run: composer require --dev nextcloud/ocp:${{ matrix.ocp-version }}
|
2021-01-23 10:59:18 +00:00
|
|
|
|
|
|
|
- name: Run coding standards check
|
|
|
|
run: composer run psalm
|