Skip to content

Commit

Permalink
Merge pull request #1466 from nextcloud/ci/replace-static-analysis-wi…
Browse files Browse the repository at this point in the history
…th-template

[stable26] ci(psalm): replace custom static analysis with org template
  • Loading branch information
blizzz committed Nov 15, 2023
2 parents d3b3a73 + 3c44ac2 commit 8d73160
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 43 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/psalm.yml
@@ -0,0 +1,45 @@
# 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

name: Nextcloud
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Set up php
uses: shivammathur/setup-php@7fdd3ece872ec7ec4c098ae5ab7637d5e0a96067 # v2
with:
php-version: 8.1
coverage: none
ini-file: development
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Install dependencies
run: composer i

- name: Install nextcloud/ocp
run: composer require --dev nextcloud/ocp:dev-stable26 --ignore-platform-reqs --with-dependencies

- name: Run coding standards check
run: composer run psalm
43 changes: 0 additions & 43 deletions .github/workflows/static-analysis.yml

This file was deleted.

0 comments on commit 8d73160

Please sign in to comment.