Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNOW-1622249 Replace Maven by SBT #144

Closed
wants to merge 26 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/code-format-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Install Java
uses: actions/setup-java@v1
- name: Checkout
uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v3
with:
java-version: 1.8
distribution: temurin
java-version: 8
- name: Check Format
run: scripts/format_checker.sh

run: scripts/format_checker.sh
13 changes: 7 additions & 6 deletions .github/workflows/precommit-code-verification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Install Java
uses: actions/setup-java@v1
- name: Checkout
uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v3
with:
java-version: 1.8
distribution: temurin
java-version: 8
- name: Decrypt profile.properties
run: .github/scripts/decrypt_profile.sh
env:
PROFILE_PASSWORD: ${{ secrets.PROFILE_PASSWORD }}
- name: Run test
run: mvn -Dgpg.skip -DtagsToInclude=com.snowflake.snowpark.CodeVerification test
run: sbt CodeVerificationTests:test
24 changes: 0 additions & 24 deletions .github/workflows/precommit-fips.yml

This file was deleted.

13 changes: 7 additions & 6 deletions .github/workflows/precommit-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Install Java
uses: actions/setup-java@v1
- name: Checkout
uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v3
with:
java-version: 1.8
distribution: temurin
java-version: 8
- name: Decrypt profile.properties
run: .github/scripts/decrypt_profile.sh
env:
PROFILE_PASSWORD: ${{ secrets.PROFILE_PASSWORD }}
- name: Run test
run: mvn -Dgpg.skip -DtagsToInclude=com.snowflake.snowpark.JavaAPITest test
run: sbt JavaAPITests:test
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: precommit test - Java Doc Validation
name: precommit test - Sproc
on:
push:
branches: [ main ]
Expand All @@ -9,15 +9,16 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Install Java
uses: actions/setup-java@v1
- name: Checkout
uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v3
with:
java-version: 1.8
distribution: temurin
java-version: 8
- name: Decrypt profile.properties
run: .github/scripts/decrypt_profile.sh
env:
PROFILE_PASSWORD: ${{ secrets.PROFILE_PASSWORD }}
- name: Run test
run: scripts/generateJavaDoc.sh
run: sbt SprocTests:test
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: precommit test - udf with packages
name: precommit test - Nonparallel
on:
push:
branches: [ main ]
Expand All @@ -9,15 +9,16 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Install Java
uses: actions/setup-java@v1
- name: Checkout
uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v3
with:
java-version: 1.8
distribution: temurin
java-version: 8
- name: Decrypt profile.properties
run: .github/scripts/decrypt_profile.sh
env:
PROFILE_PASSWORD: ${{ secrets.PROFILE_PASSWORD }}
- name: Run test
run: mvn -Dgpg.skip -DtagsToInclude=com.snowflake.snowpark.UDFPackageTest test
run: sbt NonparallelTests:test
27 changes: 0 additions & 27 deletions .github/workflows/precommit-udf-multiple-jdk.yml

This file was deleted.

10 changes: 5 additions & 5 deletions .github/workflows/precommit-udf.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: precommit test - udf
name: precommit test - UDF
on:
push:
branches: [ main ]
Expand All @@ -9,9 +9,9 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Install Java
- name: Checkout
uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v1
with:
java-version: 1.8
Expand All @@ -20,4 +20,4 @@ jobs:
env:
PROFILE_PASSWORD: ${{ secrets.PROFILE_PASSWORD }}
- name: Run test
run: mvn -Dgpg.skip -DtagsToInclude=com.snowflake.snowpark.UDFTest -DtagsToExclude="UnstableTest" test
run: sbt UDFTests:test
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: precommit test - unstable
name: precommit test - UDTF
on:
push:
branches: [ main ]
Expand All @@ -9,15 +9,16 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Install Java
uses: actions/setup-java@v1
- name: Checkout
uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v3
with:
java-version: 1.8
distribution: temurin
java-version: 8
- name: Decrypt profile.properties
run: .github/scripts/decrypt_profile.sh
env:
PROFILE_PASSWORD: ${{ secrets.PROFILE_PASSWORD }}
- name: Run test
run: mvn test -Dgpg.skip -DtagsToInclude=UnstableTest
run: sbt UDTFTests:test
24 changes: 0 additions & 24 deletions .github/workflows/precommit-windows-udf.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/precommit-windows.yml

This file was deleted.

10 changes: 5 additions & 5 deletions .github/workflows/precommit.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: precommit test
name: precommit test - Others
on:
push:
branches: [ main ]
Expand All @@ -9,9 +9,9 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Install Java
- name: Checkout
uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v1
with:
java-version: 1.8
Expand All @@ -20,4 +20,4 @@ jobs:
env:
PROFILE_PASSWORD: ${{ secrets.PROFILE_PASSWORD }}
- name: Run test
run: mvn -Dgpg.skip -DtagsToExclude=UnstableTest,com.snowflake.snowpark.PerfTest,com.snowflake.snowpark.JavaAPITest,com.snowflake.snowpark.UDFTest,com.snowflake.snowpark.UDFPackageTest,com.snowflake.snowpark.CodeVerification test
run: sbt OtherTests:test
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ javaDoc/
.DS_Store
snowpark-fips.iml
snowpark-java.iml
.bsp/
project/target/
10 changes: 6 additions & 4 deletions .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
version = "1.5.1"
version = "3.8.3"
maxColumn = 100
assumeStandardLibraryStripMargin = false
align.stripMargin = true
runner.dialect = "scala212"
align = none
align.openParenDefnSite = false
align.openParenCallSite = false
align.tokens = []
optIn = {
configStyleArguments = false
}
danglingParentheses = false
docstrings = JavaDoc
maxColumn = 98
danglingParentheses.preset = false
Loading
Loading