nextcloud-android/.github/workflows/check.yml
Andy Scherzinger 9d632a5abf
Bump GH actions to Java17
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-06-05 15:13:31 +02:00

25 lines
734 B
YAML

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 17
uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3
with:
distribution: "temurin"
java-version: 17
- name: Check ${{ matrix.task }}
run: ./gradlew ${{ matrix.task }}