Skip to content

Commit

Permalink
Fix publish on CI (#81)
Browse files Browse the repository at this point in the history
* Upgrade to zio 1.0.4-2

* Add 'help' to docs

* Fix CI publish

* Upgrade Silencer

* Reformat
  • Loading branch information
toxicafunk authored Mar 16, 2021
1 parent 020de4c commit f53ce1f
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 23 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ name: CI

on:
pull_request:
branches: ['*']
push:
branches: ['master']
tags: ['v*']
release:
types:
- published

jobs:
build:
Expand All @@ -14,7 +15,7 @@ jobs:
fail-fast: false
matrix:
java: ['[email protected]', '[email protected]']
scala: ['2.12.10', '2.13.1']
scala: ['2.12.12', '2.13.3']
steps:
- uses: actions/[email protected]
- uses: olafurpg/setup-scala@v10
Expand Down
2 changes: 1 addition & 1 deletion docs/essentials/dropwizard.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ methods. We'll start using environmental effects until the `Helper` methods are
```scala mdoc:silent
val testRegistry: RIO[Registry, (MetricRegistry, Counter)] = for {
dwr <- RIO.environment[Registry]
dwc <- dwr.get.registerCounter(ZLabel("DropwizardTests", Array("test", "counter")))
dwc <- dwr.get.registerCounter(ZLabel("DropwizardTests", Array("test", "counter"), "Just a counter for your consideration"))
c <- Task(new Counter(dwc))
r <- dwr.get.getCurrent()
} yield (r, c)
Expand Down
2 changes: 1 addition & 1 deletion docs/essentials/prometheus.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ methods. We'll start using environmental effects until the `Helper` methods are
```scala mdoc:silent
val testRegistry: RIO[Registry, CollectorRegistry] = for {
pr <- RIO.environment[Registry]
_ <- pr.get.registerCounter(ZLabel("simple_counter", Array("method")))
_ <- pr.get.registerCounter(ZLabel("simple_counter", Array("method"), "Just a simple counter for your consideration"))
r <- pr.get.getCurrent()
} yield r
```
Expand Down
25 changes: 12 additions & 13 deletions dropwizard/src/main/scala/zio/metrics/Server.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,25 @@ import scala.util.Properties.envOrNone

import cats.data.Kleisli
import cats.instances.list._

import org.http4s.server.blaze._
import org.http4s.{ Request, Response }
import com.codahale.metrics.MetricRegistry
import io.circe.Json
import org.http4s.HttpRoutes
import org.http4s.Request
import org.http4s.Response
import org.http4s.circe._
import org.http4s.dsl.impl.Root
import org.http4s.dsl.io._
import org.http4s.{ HttpRoutes, Response }

import zio.{ RIO, ZIO }
import zio.system.System
import org.http4s.server.blaze._
import zio.RIO
import zio.ZIO
import zio.blocking.Blocking
import zio.clock.Clock
import zio.console.Console
import zio.random.Random
import zio.blocking.Blocking
import zio.interop.catz._
import io.circe.Json
import zio.RIO
import zio.metrics.dropwizard.typeclasses._
import zio.metrics.dropwizard.DropwizardExtractor._
import com.codahale.metrics.MetricRegistry
import zio.metrics.dropwizard.typeclasses._
import zio.random.Random
import zio.system.System

object Server {
val port: Int = envOrNone("HTTP_PORT").fold(9090)(_.toInt)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package zio.metrics.dropwizard

import zio.{ Has, Layer, Task, ZLayer }
import java.util.concurrent.TimeUnit
import java.io.File
import java.util.Locale
import java.net.InetSocketAddress
import java.util.concurrent.TimeUnit
Expand Down
6 changes: 3 additions & 3 deletions project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ object Build {
val ZioCoreVersion = "1.0.0-RC17"
val ZioInteropJava = "1.1.0.0-RC6"

private val SilencerVersion = "1.4.4"
private val Scala212 = "2.12.10"
private val Scala213 = "2.13.1"
private val SilencerVersion = "1.7.1"
private val Scala212 = "2.12.12"
private val Scala213 = "2.13.3"

private val stdOptions = Seq(
"-encoding",
Expand Down

0 comments on commit f53ce1f

Please sign in to comment.