check.yml 839 B

1234567891011121314151617181920212223242526272829303132
  1. # SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
  2. # SPDX-License-Identifier: MIT
  3. name: Check
  4. on:
  5. pull_request:
  6. branches: [ master, stable-* ]
  7. # Declare default permissions as read only.
  8. permissions: read-all
  9. concurrency:
  10. group: check-kotlin-${{ github.head_ref || github.run_id }}
  11. cancel-in-progress: true
  12. jobs:
  13. check:
  14. runs-on: ubuntu-latest
  15. strategy:
  16. fail-fast: false
  17. matrix:
  18. task: [ detekt, ktlintCheck ]
  19. steps:
  20. - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
  21. - name: Set up JDK 17
  22. uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
  23. with:
  24. distribution: "temurin"
  25. java-version: 17
  26. - name: Check ${{ matrix.task }}
  27. run: ./gradlew ${{ matrix.task }}