Skip to content

Merge pull request #1457 from nextcloud/dependabot/github_actions/act… #859

Merge pull request #1457 from nextcloud/dependabot/github_actions/act…

Merge pull request #1457 from nextcloud/dependabot/github_actions/act… #859

Workflow file for this run

name: Analysis
# Declare default permissions as read only.
permissions: read-all
on: [push, pull_request]
jobs:
detekt:
name: detekt
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
steps:
- uses: actions/checkout@v4
- name: set up JDK 17
uses: actions/setup-java@v4.2.2
with:
distribution: 'temurin'
java-version: 17
- name: Run detekt
run: bash ./gradlew detekt
spotless:
name: Spotless (ktlint)
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
steps:
- uses: actions/checkout@v4
- name: set up JDK 17
uses: actions/setup-java@v4.2.2
with:
distribution: 'temurin'
java-version: 17
- name: Run spotless
run: bash ./gradlew spotlessCheck