-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
30 changed files
with
312 additions
and
884 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Broken Links Checker | ||
|
||
on: | ||
schedule: | ||
- cron: "0 5 * * *" | ||
push: | ||
|
||
jobs: | ||
linkChecker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: gaurav-nelson/github-action-markdown-link-check@v1 | ||
with: | ||
use-quiet-mode: 'yes' | ||
use-verbose-mode: 'yes' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
name: CI Build | ||
|
||
on: | ||
- push | ||
|
||
jobs: | ||
build: | ||
name: Building with Scala ${{ matrix.scala }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
scala: [ 2.12.14, 2.13.6 ] | ||
|
||
steps: | ||
- name: Checkout the Repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Java and Scala with JDK 11 | ||
uses: olafurpg/setup-scala@v10 | ||
with: | ||
java-version: 11 | ||
|
||
- name: Cache Local SBT Dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.sbt | ||
~/.ivy2/cache | ||
~/.coursier/cache/v1 | ||
~/.cache/coursier/v1 | ||
key: ${{ runner.os }}-sbt-cache-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-sbt-cache- | ||
- name: Check Formatting | ||
run: sbt ++${{ matrix.scala }} scalafmtSbtCheck scalafmtCheckAll | ||
|
||
- name: Run CI | ||
run: ./scripts/ci.sh | ||
env: | ||
SCALA_VERSION: ${{ matrix.scala }} | ||
|
||
- name: Upload Coverage Results to Coveralls | ||
run: sbt ++${{ matrix.scala }} coveralls | ||
env: | ||
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# This required because of the sonarcloud-github-action docker volume mapping. | ||
- name: Prepare for Sonar Cloud Scan | ||
if: startsWith(matrix.scala, '2.13') | ||
run: | | ||
find . -name scoverage.xml -exec sed -i \ | ||
's#/home/runner/work/import-export-udf-common-scala/import-export-udf-common-scala#/github/workspace#g' {} + | ||
- name: Sonar Cloud Scan | ||
if: startsWith(matrix.scala, '2.13') | ||
uses: sonarsource/sonarcloud-github-action@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
|
||
- name: Cleanup | ||
run: | | ||
rm -rf "$HOME/.ivy2/local" || true | ||
find $HOME/Library/Caches/Coursier/v1 -name "ivydata-*.properties" -delete || true | ||
find $HOME/.ivy2/cache -name "ivydata-*.properties" -delete || true | ||
find $HOME/.cache/coursier/v1 -name "ivydata-*.properties" -delete || true | ||
find $HOME/.coursier/cache -name "*.lock" -delete || true | ||
find $HOME/.sbt -name "*.lock" -delete || true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,45 @@ | ||
version = 3.0.1 | ||
project.git = true | ||
|
||
maxColumn = 98 | ||
docstrings = JavaDoc | ||
maxColumn = 120 | ||
docstrings.style = Asterisk | ||
docstrings.wrap = "no" | ||
|
||
align = true | ||
align.openParenCallSite = false | ||
align.openParenDefnSite = false | ||
align.stripMargin = true | ||
assumeStandardLibraryStripMargin = true | ||
continuationIndent.defnSite = 2 | ||
danglingParentheses = true | ||
danglingParentheses.preset = true | ||
|
||
assumeStandardLibraryStripMargin = true | ||
rewrite.redundantBraces.stringInterpolation = true | ||
rewrite.rules = [ | ||
AsciiSortImports, | ||
AvoidInfix, | ||
PreferCurlyFors, | ||
RedundantBraces, | ||
RedundantParens, | ||
PreferCurlyFors, | ||
SortImports | ||
SortModifiers | ||
] | ||
rewrite.neverInfix.excludeFilters = [ | ||
at | ||
exclude | ||
excludeAll | ||
in | ||
to | ||
until | ||
] | ||
rewrite.redundantBraces.generalExpressions = false | ||
rewrite.redundantBraces.ifElseExpressions = false | ||
rewrite.redundantBraces.stringInterpolation = true | ||
rewrite.sortModifiers.order = [ | ||
"`override`" | ||
"`private`" | ||
"`protected`" | ||
"`sealed`" | ||
"`abstract`" | ||
"`lazy`" | ||
"`implicit`" | ||
"`final`" | ||
] | ||
spaces.inImportCurlyBraces = false |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# Releases | ||
|
||
* [0.3.0](changes_0.3.0.md) | ||
* [0.2.0](changes_0.2.0.md) | ||
* [0.1.0](changes_0.1.0.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Import Export UDF Common Scala 0.3.0, released 2021-??-?? | ||
|
||
Code name: | ||
|
||
## Summary | ||
|
||
## Refactoring | ||
|
||
## Dependency Updates | ||
|
||
### Runtime Dependency Updates | ||
|
||
* Updated `com.fasterxml.jackson.core:jackson-databind:2.11.3` to `2.12.5` | ||
* Updated `com.fasterxml.jackson.module:jackson-module-scala:2.11.3` to `2.12.5` | ||
* Updated `com.typesafe.scala-logging:scala-logging:3.9.2` to `3.9.4` | ||
* Updated `org.apache.avro:avro:1.10.0` to `1.10.2` | ||
* Updated `org.slf4j:slf4j-simple:1.7.30` to `1.7.32` | ||
|
||
### Test Dependency Updates | ||
|
||
* Updated `org.mockito:mockito-core:test:3.6.0` to `3.12.4` | ||
* Updated `org.scalatest:scalatest:test:3.2.2` to `3.2.9` | ||
|
||
### Plugin Updates | ||
|
||
* Added `org.scalameta:sbt-scalafmt:2.4.3` | ||
* Updated `com.jsuereth:sbt-pgp:2.0.1` to `2.1.1` | ||
* Updated `com.timushev.sbt:sbt-updates:0.5.1` to `0.6.0` | ||
* Updated `com.typesafe.sbt:sbt-git:1.0.0` to `1.0.1` | ||
* Updated `org.scoverage:sbt-coveralls:1.2.7` to `1.3.1` | ||
* Updated `org.scoverage:sbt-scoverage:1.6.1` to `1.8.2` | ||
* Updated `org.wartremover:sbt-wartremover:2.4.12` to `2.4.16` | ||
* Updated `org.wartremover:sbt-wartremover-contib:1.3.10` to `1.3.12` | ||
* Updated `org.xerial.sbt:sbt-sonatype:3.9.4` to `3.9.10` | ||
* Removed `com.github.cb372:sbt-explicit-dependencies:0.2.15` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.