Skip to content

Commit

Permalink
treefmt and treefmt with ci
Browse files Browse the repository at this point in the history
  • Loading branch information
bristermitten committed Sep 12, 2024
1 parent 1222a41 commit d4757e8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ jobs:
with:
name: codosseum
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"

- name: Run treefmt
run: nix develop -c treefmt

- name: Commit treefmt changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: run treefmt"

- name: Install omnix
run: nix --accept-flake-config profile install "github:juspay/omnix"
Expand Down
6 changes: 3 additions & 3 deletions templatespiler-server/src/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@ import Language.Templatespiler.Syntax (BindingList)
import Network.Wai (Middleware)
import Network.Wai.Handler.Warp (run)
import Network.Wai.Middleware.Cors
import Network.Wai.Middleware.Prometheus (PrometheusSettings (..), prometheus)
import Network.Wai.Middleware.RequestLogger (logStdoutDev)
import Options.Applicative qualified as Apt
import Prettyprinter
import Prettyprinter.Render.Text
import Prometheus (register)
import Prometheus.Metric.GHC (ghcMetrics)
import Servant (Application, Handler, ServerError (..), ServerT, err400, hoistServer, serve, throwError, (:<|>) (..))
import Templatespiler.Convert (convertTo, renderConvertResult)
import Templatespiler.Emit.Common (ConvertResult (..), PDoc, TDoc)
import Templatespiler.Generator (generateInput)
import Templatespiler.Server
import Text.Trifecta (ErrInfo (_errDoc), Result (..), parseByteString)
import Prelude hiding (State, state)
import Network.Wai.Middleware.Prometheus (prometheus, PrometheusSettings(..))
import Prometheus (register)
import Prometheus.Metric.GHC (ghcMetrics)

data StartCommand
= StartServer
Expand Down

0 comments on commit d4757e8

Please sign in to comment.