2023-01-16 16:10:56 +00:00
|
|
|
# This workflow is provided via the organization template repository
|
|
|
|
#
|
|
|
|
# https://github.com/nextcloud/.github
|
|
|
|
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
|
|
|
|
|
|
|
|
name: Static analysis
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- main
|
|
|
|
- stable*
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: psalm-${{ github.head_ref || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
static-analysis:
|
|
|
|
runs-on: ubuntu-latest
|
2023-05-17 13:56:25 +00:00
|
|
|
strategy:
|
|
|
|
# do not stop on another job's failure
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2023-06-09 18:26:37 +00:00
|
|
|
ocp-version: [ 'dev-master', 'dev-stable27', 'dev-stable26' ]
|
2023-01-16 16:10:56 +00:00
|
|
|
|
2023-06-07 09:46:40 +00:00
|
|
|
name: Nextcloud
|
2023-01-16 16:10:56 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-06-01 16:12:30 +00:00
|
|
|
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
|
2023-01-16 16:10:56 +00:00
|
|
|
|
|
|
|
- name: Set up php
|
2023-06-01 16:12:30 +00:00
|
|
|
uses: shivammathur/setup-php@c5fc0d8281aba02c7fda07d3a70cc5371548067d # v2
|
2023-01-16 16:10:56 +00:00
|
|
|
with:
|
2023-06-07 09:46:40 +00:00
|
|
|
php-version: 8.1
|
2023-01-16 16:10:56 +00:00
|
|
|
coverage: none
|
2023-06-01 16:12:30 +00:00
|
|
|
ini-file: development
|
2023-01-16 16:10:56 +00:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: composer i
|
|
|
|
|
|
|
|
- name: Run coding standards check
|
|
|
|
run: composer run psalm
|