diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7a3736c..6f29ab3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,9 +5,13 @@ on: branches: - main tags: ["*"] + workflow_run: + workflows: ["CI"] + types: + - completed jobs: publish: - if: github.repository == 'sake92/sharaf' + if: github.repository == 'sake92/sharaf' && github.event.workflow_run.conclusion == 'success' runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 diff --git a/.mill-version b/.mill-version index 027934e..a8839f7 100644 --- a/.mill-version +++ b/.mill-version @@ -1 +1 @@ -0.11.1 \ No newline at end of file +0.11.2 \ No newline at end of file diff --git a/DEV.md b/DEV.md index abaa1d6..19b5eb4 100644 --- a/DEV.md +++ b/DEV.md @@ -25,4 +25,4 @@ git push origin $VERSION # TODOs -- cookies \ No newline at end of file +- cookies ? \ No newline at end of file diff --git a/README.md b/README.md index 2337a1e..c6d49c4 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,5 @@ # Sharaf - - -## Misc - -Why name "sharaf"? - -Šaraf means a "screw" in Bosnian, and it reminds me of scala spiral logo. - ---- ## Why sharaf? @@ -16,14 +7,19 @@ Why name "sharaf"? It is built on top of [undertow](https://undertow.io/). This means you can use some awesome libraries built for undertow, like [pac4j](https://github.com/pac4j/undertow-pac4j) for security and similar. -Also, you can use undertow's lower level API, to implement WebSocket for example. +Also, you can use undertow's lower level API, to use WebSockets for example. Sharaf bundles a set of libraries: - [querson](./querson) for query parameters -- [hepek-components](https://github.com/sake92/hepek) for HTML (with [scalatags](https://github.com/com-lihaoyi/scalatags)) - [tupson](https://github.com/sake92/tupson) for JSON - [formson](./formson) for forms - [validson](./formson) for validation +- [hepek-components](https://github.com/sake92/hepek) for HTML (with [scalatags](https://github.com/com-lihaoyi/scalatags)) There are a bunch of [examples](./examples) to get you started. +## Misc + +Why name "sharaf"? + +Šaraf means a "screw" in Bosnian, which reminds me of scala spiral logo. diff --git a/sharaf/test/src/ba/sake/sharaf/routing/PathTest.scala b/sharaf/test/src/ba/sake/sharaf/routing/PathTest.scala index baebf5c..dc561ae 100644 --- a/sharaf/test/src/ba/sake/sharaf/routing/PathTest.scala +++ b/sharaf/test/src/ba/sake/sharaf/routing/PathTest.scala @@ -7,6 +7,8 @@ import java.util.UUID class PathTest extends munit.FunSuite { test("path matching") { + if true then + throw RuntimeException("test") val uuidValue = UUID.randomUUID val paths = Seq( Path("users", "1"),