You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

openapi.yml 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # This workflow is provided via the organization template repository
  2. #
  3. # https://github.com/nextcloud/.github
  4. # https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
  5. #
  6. # SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
  7. # SPDX-FileCopyrightText: 2024 Arthur Schiwon <blizzz@arthur-schiwon.de>
  8. # SPDX-License-Identifier: MIT
  9. name: OpenAPI
  10. on: pull_request
  11. permissions:
  12. contents: read
  13. concurrency:
  14. group: openapi-${{ github.head_ref || github.run_id }}
  15. cancel-in-progress: true
  16. jobs:
  17. openapi:
  18. runs-on: ubuntu-latest
  19. if: ${{ github.repository_owner != 'nextcloud-gmbh' }}
  20. steps:
  21. - name: Checkout
  22. uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
  23. - name: Set up php
  24. uses: shivammathur/setup-php@c665c7a15b5295c2488ac8a87af9cb806cd72198 # v2
  25. with:
  26. php-version: '8.2'
  27. extensions: ctype, curl, dom, fileinfo, gd, json, libxml, mbstring, openssl, pcntl, pdo, posix, session, simplexml, xml, xmlreader, xmlwriter, zip, zlib
  28. coverage: none
  29. ini-file: development
  30. env:
  31. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  32. - name: Set up dependencies
  33. run: composer i
  34. - name: OpenAPI checker
  35. run: build/openapi-checker.sh