From 206b1827e50430cecf0d306bc7e7e76b199420df Mon Sep 17 00:00:00 2001 From: John Shaw Date: Thu, 13 Mar 2025 11:03:19 -0700 Subject: [PATCH 1/5] Create scala.yml Add a scala.yml function that runs the scala format checker and runs tests so we aren't reliant on a travisci pipeline. I'll remove the travis config after testing. --- .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..dae8e99 --- /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 + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 11 + uses: actions/setup-java@v4 + with: + java-version: '11' + distribution: 'temurin' + cache: 'sbt' + - name: Run formatting check + run: sbt scalafmtCheckAll + - name: Run tests + 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 From b686650f6ea97bae5fd41d6179b2be2159efa573 Mon Sep 17 00:00:00 2001 From: John Shaw Date: Thu, 13 Mar 2025 11:14:39 -0700 Subject: [PATCH 2/5] Update scala.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed indention... 🤦‍♂️ --- .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 dae8e99..9b58ff0 100644 --- a/.github/workflows/scala.yml +++ b/.github/workflows/scala.yml @@ -28,7 +28,7 @@ jobs: distribution: 'temurin' cache: 'sbt' - name: Run formatting check - run: sbt scalafmtCheckAll + run: sbt scalafmtCheckAll - name: Run tests run: sbt +test # Optional: This step uploads information to the GitHub dependency graph and unblocking Dependabot alerts for the repository From e2f50a928a60798a5c22629bbbc5f3334e73aebf Mon Sep 17 00:00:00 2001 From: John Shaw Date: Thu, 13 Mar 2025 11:25:27 -0700 Subject: [PATCH 3/5] Update scala.yml Add SBT support... I think... --- .github/workflows/scala.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/scala.yml b/.github/workflows/scala.yml index 9b58ff0..2e9f5f5 100644 --- a/.github/workflows/scala.yml +++ b/.github/workflows/scala.yml @@ -27,6 +27,7 @@ jobs: java-version: '11' distribution: 'temurin' cache: 'sbt' + - uses: sbt/setup-sbt@v1 - name: Run formatting check run: sbt scalafmtCheckAll - name: Run tests From 72f200791ab67e7d034abb37b42cc08c1549f272 Mon Sep 17 00:00:00 2001 From: John Shaw Date: Thu, 13 Mar 2025 11:28:47 -0700 Subject: [PATCH 4/5] Update scala.yml Remove dependencies uploads for now. This was canned config github added. --- .github/workflows/scala.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/scala.yml b/.github/workflows/scala.yml index 2e9f5f5..76850bb 100644 --- a/.github/workflows/scala.yml +++ b/.github/workflows/scala.yml @@ -32,6 +32,3 @@ jobs: run: sbt scalafmtCheckAll - name: Run tests 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 From 039b202c7a74e1511b5a07f882112b4731af2fc2 Mon Sep 17 00:00:00 2001 From: John Shaw Date: Thu, 13 Mar 2025 11:35:57 -0700 Subject: [PATCH 5/5] Delete .travis.yml Remove the Travis config since the GitHub actions work. --- .travis.yml | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 75e27f6..0000000 --- a/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -language: scala -scala: - - 2.13.11 -jdk: openjdk11 - -before_install: - - git fetch --tags - -stages: - - name: test - -jobs: - include: - - stage: test - name: run tests - script: - - sbt scalafmtCheckAll - - sbt +test