From 7050f0ea40fc0a0f1d190f5c2632e6b671beed4e Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Fri, 7 May 2021 16:27:55 +0530 Subject: build: switch to Spotless for formatting Signed-off-by: Harsh Shandilya --- .github/pull_request_template.md | 2 +- .github/workflows/pull_request.yml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to '.github') diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 39dc2e60..26f0f389 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -20,7 +20,7 @@ ## :pencil: Checklist -- [ ] I formatted the code with the IDE's reformat action (Ctrl + Shift + L/Cmd + Shift + L) +- [ ] I formatted the code `./gradlew spotlessApply` - [ ] I reviewed submitted code - [ ] I added a [CHANGELOG](CHANGELOG.md) entry if applicable diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index dbfe2e4c..f74196c4 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -44,6 +44,8 @@ jobs: - name: Checkout repository if: ${{ steps.service-changed.outputs.result == 'true' }} uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f + with: + fetch-depth: 0 #with: # ref: refs/pull/${{ github.event.pull_request.number }}/merge @@ -55,7 +57,7 @@ jobs: if: ${{ steps.service-changed.outputs.result == 'true' }} uses: burrunan/gradle-cache-action@03c71a8ba93d670980695505f48f49daf43704a6 with: - arguments: apiCheck testFreeDebug lintFreeDebug ktfmtCheck + arguments: apiCheck testFreeDebug lintFreeDebug spotlessCheck - name: Run instrumentation tests if: ${{ steps.service-changed.outputs.result == 'true' }} -- cgit v1.2.3