From b39c95c392bc9bf13ec9dee630e6ba1c09b64422 Mon Sep 17 00:00:00 2001 From: "Dr. Daniel Alexander Smith" Date: Wed, 26 Jul 2023 14:33:56 +0100 Subject: [PATCH 1/4] Create scala.yml --- .github/workflows/scala.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/scala.yml diff --git a/.github/workflows/scala.yml b/.github/workflows/scala.yml new file mode 100644 index 0000000..5880358 --- /dev/null +++ b/.github/workflows/scala.yml @@ -0,0 +1,36 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: Scala CI - Run Tests + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 8 + uses: actions/setup-java@v3 + with: + java-version: '8' + distribution: 'temurin' + cache: 'sbt' + - name: Run tests + run: | + cd data-quality-profiler + sbt test + # Optional: This step uploads information to the GitHub dependency graph and unblocking Dependabot alerts for the repository + - name: Upload dependency graph + uses: scalacenter/sbt-dependency-submission@ab086b50c947c9774b70f39fc7f6e20ca2706c91 From 2775e5e80966348e9b298886b64a1b95c9d23293 Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Wed, 26 Jul 2023 15:35:45 +0100 Subject: [PATCH 2/4] Add SBT Plugins --- .gitignore | 1 - data-quality-profiler/.gitignore | 1 - data-quality-profiler/project/.gitignore | 1 + data-quality-profiler/project/build.properties | 1 + data-quality-profiler/project/plugins.sbt | 4 ++++ 5 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 data-quality-profiler/project/.gitignore create mode 100644 data-quality-profiler/project/build.properties create mode 100644 data-quality-profiler/project/plugins.sbt diff --git a/.gitignore b/.gitignore index 68be74e..be27313 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,6 @@ .idea target .bsp -project !plugins.sbt **/*.metadata src/test/resources/*tmp* diff --git a/data-quality-profiler/.gitignore b/data-quality-profiler/.gitignore index 68be74e..be27313 100644 --- a/data-quality-profiler/.gitignore +++ b/data-quality-profiler/.gitignore @@ -1,7 +1,6 @@ .idea target .bsp -project !plugins.sbt **/*.metadata src/test/resources/*tmp* diff --git a/data-quality-profiler/project/.gitignore b/data-quality-profiler/project/.gitignore new file mode 100644 index 0000000..5191b60 --- /dev/null +++ b/data-quality-profiler/project/.gitignore @@ -0,0 +1 @@ +project diff --git a/data-quality-profiler/project/build.properties b/data-quality-profiler/project/build.properties new file mode 100644 index 0000000..10fd9ee --- /dev/null +++ b/data-quality-profiler/project/build.properties @@ -0,0 +1 @@ +sbt.version=1.5.5 diff --git a/data-quality-profiler/project/plugins.sbt b/data-quality-profiler/project/plugins.sbt new file mode 100644 index 0000000..d8701d2 --- /dev/null +++ b/data-quality-profiler/project/plugins.sbt @@ -0,0 +1,4 @@ +addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "2.1.1") +addSbtPlugin("org.wartremover" % "sbt-wartremover" % "3.0.6") +addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.0") +addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.13.0") From c9edae32f0d51efce0232073512cf31b791ec88c Mon Sep 17 00:00:00 2001 From: "Dr. Daniel Alexander Smith" Date: Wed, 26 Jul 2023 15:59:15 +0100 Subject: [PATCH 3/4] Update scala.yml --- .github/workflows/scala.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/scala.yml b/.github/workflows/scala.yml index 5880358..d7ddb26 100644 --- a/.github/workflows/scala.yml +++ b/.github/workflows/scala.yml @@ -28,9 +28,10 @@ jobs: distribution: 'temurin' cache: 'sbt' - name: Run tests - run: | - cd data-quality-profiler - sbt test + working-directory: ./data-quality-profiler + run: sbt test # Optional: This step uploads information to the GitHub dependency graph and unblocking Dependabot alerts for the repository - name: Upload dependency graph uses: scalacenter/sbt-dependency-submission@ab086b50c947c9774b70f39fc7f6e20ca2706c91 + with: + working-directory: ./data-quality-profiler From 5f0bf21de59f3a7b09a45a2dd63220e1a3766326 Mon Sep 17 00:00:00 2001 From: "Dr. Daniel Alexander Smith" Date: Wed, 26 Jul 2023 16:22:25 +0100 Subject: [PATCH 4/4] Update scala.yml --- .github/workflows/scala.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/scala.yml b/.github/workflows/scala.yml index d7ddb26..c298b21 100644 --- a/.github/workflows/scala.yml +++ b/.github/workflows/scala.yml @@ -12,7 +12,7 @@ on: branches: [ "main" ] permissions: - contents: read + contents: write jobs: build: