enh: use PUT/PATCH for updating and move to API v2.2 #712
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
concurrency: | |
group: psalm-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
changes: | |
runs-on: ubuntu-latest | |
outputs: | |
src: ${{ steps.changes.outputs.src}} | |
steps: | |
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2.11.1 | |
id: changes | |
continue-on-error: true | |
with: | |
filters: | | |
src: | |
- '.github/workflows/**' | |
- 'vendor/**' | |
- 'vendor-bin/**' | |
- '**/*.php' | |
- 'psalm.xml' | |
- 'composer.json' | |
- 'composer.lock' | |
static-analysis: | |
runs-on: ubuntu-latest | |
needs: changes | |
if: needs.changes.outputs.src != 'false' | |
name: Static analysis | |
steps: | |
- name: Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Set up php8.2 | |
uses: shivammathur/setup-php@81cd5ae0920b34eef300e1775313071038a53429 # v2 | |
with: | |
php-version: 8.2 | |
coverage: none | |
ini-file: development | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install dependencies | |
run: composer i | |
- name: Run coding standards check | |
run: composer run psalm | |
summary: | |
permissions: | |
contents: none | |
runs-on: ubuntu-latest | |
needs: [changes, static-analysis] | |
if: always() | |
name: psalm-summary | |
steps: | |
- name: Summary status | |
run: if ${{ needs.changes.outputs.src != 'false' && needs.static-analysis.result != 'success' }}; then exit 1; fi |