aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2021-05-07 16:27:55 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2021-05-09 11:52:33 +0530
commit7050f0ea40fc0a0f1d190f5c2632e6b671beed4e (patch)
tree11bef5f84399bb60fd0f98fcf5c2334d566b5b06 /.github
parent00e0881e47fc1f9d7accb6a242417f7be636a9be (diff)
build: switch to Spotless for formatting
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to '.github')
-rw-r--r--.github/pull_request_template.md2
-rw-r--r--.github/workflows/pull_request.yml4
2 files changed, 4 insertions, 2 deletions
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
<!--- Put an `x` in the boxes that apply -->
-- [ ] 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' }}