Skip to content

Commit

Permalink
Merge branch 'main' into sfc-gh-sjayabalan-sma-reverse-isnull-conv-un…
Browse files Browse the repository at this point in the history
…ixtimestamp
  • Loading branch information
sfc-gh-sjayabalan authored Aug 20, 2024
2 parents bdf0ba9 + a1babb3 commit 8558fbc
Show file tree
Hide file tree
Showing 6 changed files with 1,249 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/code-format-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Code Format Check
on:
push:
branches: [ main ]
pull_request:
branches: '**'

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Install Java
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Check Format
run: scripts/format_checker.sh

11 changes: 11 additions & 0 deletions scripts/format_checker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash -ex

mvn clean compile

if [ -z "$(git status --porcelain)" ]; then
echo "Code Format Check: Passed!"
else
echo "Code Format Check: Failed!"
echo "Run 'mvn clean compile' to reformat"
exit 1
fi
Loading

0 comments on commit 8558fbc

Please sign in to comment.