1
0

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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
  23. - name: Set up php
  24. uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 #v2.31.1
  25. with:
  26. php-version: '8.1'
  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