chore(deps-dev): Bump vitest from 4.1.2 to 4.1.4 #115
Workflow file for this run
This file contains hidden or 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
| # SPDX-FileCopyrightText: 2026 LibreCode Coop and LibreCode contributors | |
| # | |
| # SPDX-License-Identifier: AGPL-3.0-or-later | |
| name: OpenAPI | |
| on: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: openapi-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| openapi: | |
| runs-on: ubuntu-latest | |
| if: ${{ github.repository_owner != 'nextcloud-gmbh' }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Get php version | |
| id: php_versions | |
| uses: icewind1991/nextcloud-version-matrix@8a7bac6300b2f0f3100088b297995a229558ddba # v1.3.2 | |
| - name: Set up php | |
| uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0 | |
| with: | |
| php-version: ${{ steps.php_versions.outputs.php-available }} | |
| extensions: xml | |
| coverage: none | |
| ini-file: development | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Check Typescript OpenAPI types | |
| id: check_typescript_openapi | |
| uses: andstor/file-existence-action@558493d6c74bf472d87c84eab196434afc2fa029 # v3.1.0 | |
| with: | |
| files: src/types/openapi/openapi*.ts | |
| - name: Read package.json node and npm engines version | |
| if: steps.check_typescript_openapi.outputs.files_exists == 'true' | |
| uses: skjnldsv/read-package-engines-version-actions@06d6baf7d8f41934ab630e97d9e6c0bc9c9ac5e4 # v3 | |
| id: node_versions | |
| continue-on-error: true | |
| with: | |
| fallbackNode: '^24' | |
| fallbackNpm: '^11.3' | |
| - name: Set up node ${{ steps.node_versions.outputs.nodeVersion }} | |
| if: ${{ steps.node_versions.outputs.nodeVersion }} | |
| uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | |
| with: | |
| node-version: ${{ steps.node_versions.outputs.nodeVersion }} | |
| - name: Set up npm ${{ steps.node_versions.outputs.npmVersion }} | |
| if: ${{ steps.node_versions.outputs.nodeVersion }} | |
| run: npm i -g 'npm@${{ steps.node_versions.outputs.npmVersion }}' | |
| - name: Install node dependencies | |
| if: ${{ steps.node_versions.outputs.nodeVersion }} | |
| env: | |
| CYPRESS_INSTALL_BINARY: 0 | |
| PUPPETEER_SKIP_DOWNLOAD: true | |
| run: npm ci | |
| - name: Install dependencies | |
| run: composer i | |
| - name: Regenerate OpenAPI | |
| run: composer run openapi | |
| - name: Regenerate TypeScript OpenAPI types | |
| if: steps.check_typescript_openapi.outputs.files_exists == 'true' | |
| run: npm run typescript:generate | |
| - name: Check openapi*.json and typescript changes | |
| run: | | |
| bash -c "[[ ! \"`git status --porcelain `\" ]] || (echo 'Please run \"composer run openapi\" and commit the openapi*.json files and, if applicable, src/types/openapi/openapi*.ts. See the diff below.' && exit 1)" | |
| - name: Show changes on failure | |
| if: failure() | |
| run: | | |
| git status | |
| git --no-pager diff | |
| exit 1 |