mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-21 01:01:41 +00:00
Add git-diff check to ensure spotless was run (#87)
This commit is contained in:
@@ -38,6 +38,18 @@ jobs:
|
||||
root: ./build/libs
|
||||
paths:
|
||||
- .
|
||||
|
||||
format_diff_against_git:
|
||||
working_directory: ~/project/chameleon-server
|
||||
docker:
|
||||
- image: gradle:jdk12
|
||||
steps:
|
||||
- checkout:
|
||||
path: ~/project
|
||||
|
||||
- run: gradle spotlessApply
|
||||
- run: git --no-pager diff --exit-code HEAD
|
||||
|
||||
|
||||
deploy:
|
||||
docker:
|
||||
@@ -55,13 +67,15 @@ workflows:
|
||||
version: 2
|
||||
release:
|
||||
jobs:
|
||||
- format_diff_against_git
|
||||
- build_ui
|
||||
- build_jar:
|
||||
requires:
|
||||
- build_ui
|
||||
- deploy:
|
||||
requires:
|
||||
- format_diff_against_git
|
||||
- build_jar
|
||||
filters:
|
||||
branches:
|
||||
only: master
|
||||
only: master
|
||||
|
||||
Reference in New Issue
Block a user