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.

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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: xml
  28. coverage: none
  29. env:
  30. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  31. - name: Composer install
  32. run: composer i
  33. - name: OpenAPI checker
  34. run: build/openapi-checker.sh