openapi.yml 1.3 KB

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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
  23. - name: Set up php
  24. uses: shivammathur/setup-php@2e947f1f6932d141d076ca441d0e1e881775e95b #v2.31.0
  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