name: Check on: pull_request: branches: [ master, stable-* ] # Declare default permissions as read only. permissions: read-all jobs: check: runs-on: ubuntu-latest strategy: fail-fast: false matrix: task: [ detekt, spotlessKotlinCheck ] steps: - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3 - name: Set up JDK 11 uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3 with: distribution: "temurin" java-version: 11 - name: Check ${{ matrix.task }} run: ./gradlew ${{ matrix.task }}