Welcome to mirror list, hosted at ThFree Co, Russian Federation.

psalm.yml « workflows « .github - github.com/nextcloud/files_downloadactivity.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0f8dece2e633dc7f162a2ac3acb0ca41dc8aff9e (plain)
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
# 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*

jobs:
  static-analysis:
      runs-on: ubuntu-latest
      strategy:
          # do not stop on another job's failure
          fail-fast: false
          matrix:
              ocp-version: [ 'dev-master', 'dev-stable25', 'dev-stable24', 'dev-stable23' ]
      name: Nextcloud ${{ matrix.ocp-version }}
      steps:
          - name: Checkout
            uses: actions/checkout@v3

          - name: Set up php
            uses: shivammathur/setup-php@v2
            with:
                php-version: 7.4
                tools: composer:v1
                coverage: none

          - name: Install dependencies
            run: composer i

          - name: Install dependencies
            run: composer require --dev nextcloud/ocp:${{ matrix.ocp-version }} --ignore-platform-reqs

          - name: Run coding standards check
            run: composer run psalm

  summary:
    runs-on: ubuntu-latest
    needs: static-analysis

    if: always()

    name: static-psalm-analysis-summary

    steps:
      - name: Summary status
        run: if ${{ needs.static-analysis.result != 'success' }}; then exit 1; fi