Skip to content

Commit

Permalink
Cleanup & update build.sbt (zio#9310)
Browse files Browse the repository at this point in the history
* Cleanup `build.sbt` and update dependencies

* Use `CrossType.Pure` wherever possible

* Use Scala 2 version of refined in test-refined

* Cross-build benchmarks and get test-junit tests working for Scala 3

* Use same version of surefire plugin

* Fix benchmarks module for Scala 2.12

* Fix configuration documentation example
  • Loading branch information
kyri-petrou authored Nov 21, 2024
1 parent 018b84f commit 349c3c6
Show file tree
Hide file tree
Showing 80 changed files with 366 additions and 402 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,8 @@ jobs:
check-latest: true
- name: Cache scala dependencies
uses: coursier/cache-action@v6
- name: Test 2.12
if: ${{ startsWith(matrix.scala, '2.12.') }}
run: sbt -v ++${{ matrix.scala }} test${{ matrix.platform }}
- name: Test 2.13
if: ${{ startsWith(matrix.scala, '2.13.') }}
- name: Run tests
run: sbt -v ++${{ matrix.scala }} test${{ matrix.platform }}
- name: Test 3
if: ${{ startsWith(matrix.scala, '3.') }}
run: sbt -v ++${{ matrix.scala }} test${{ matrix.platform }}3
- name: Upload Test Results 2.12
if: ${{ startsWith(matrix.scala, '2.12.') }}
uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/src/main/scala/zio/NewEncodingBenchmark.scala
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ object Classic {
cur match {
case FlatMap(first, andThen) =>
cur = first
stack.push(andThen)
stack.push(andThen.asInstanceOf[ErasedK])

case Succeed(thunk) =>
val value = thunk()
Expand Down
Loading

0 comments on commit 349c3c6

Please sign in to comment.