Skip to content

Commit

Permalink
Merge branch 'sfc-gh-sjayabalan-sma-reverse-isnull-conv-unixtimestamp…
Browse files Browse the repository at this point in the history
…' of https://github.com/snowflakedb/snowpark-java-scala into sfc-gh-sjayabalan-sma-reverse-isnull-conv-unixtimestamp
  • Loading branch information
sfc-gh-sjayabalan committed Aug 20, 2024
2 parents 3179e0b + 8558fbc commit 805320d
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 805320d

Please sign in to comment.