From dd3762191ef7cac0ae06b331a67608b8949d6a30 Mon Sep 17 00:00:00 2001 From: Nextcloud bot Date: Sat, 15 Oct 2022 15:01:56 +0000 Subject: Updating psalm.yml workflow from template Signed-off-by: Nextcloud bot --- .github/workflows/psalm.yml | 52 ++++++++++++++++----------------------------- 1 file changed, 18 insertions(+), 34 deletions(-) diff --git a/.github/workflows/psalm.yml b/.github/workflows/psalm.yml index 0f8dece..dc4d05d 100644 --- a/.github/workflows/psalm.yml +++ b/.github/workflows/psalm.yml @@ -13,43 +13,27 @@ on: - main - stable* +concurrency: + group: psalm-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + 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: Nextcloud + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up php + uses: shivammathur/setup-php@v2 + with: + php-version: 7.4 + coverage: none - name: static-psalm-analysis-summary + - name: Install dependencies + run: composer i - steps: - - name: Summary status - run: if ${{ needs.static-analysis.result != 'success' }}; then exit 1; fi + - name: Run coding standards check + run: composer run psalm -- cgit v1.2.3