From a8cbfa797c7174c865c472eec4ea469ba51d3422 Mon Sep 17 00:00:00 2001 From: Ivan Reshetnikov Date: Thu, 16 Mar 2023 09:00:23 +0100 Subject: [PATCH 1/3] feat: client rustls support --- relay_client/Cargo.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/relay_client/Cargo.toml b/relay_client/Cargo.toml index c1bad1d..b3e6e6a 100644 --- a/relay_client/Cargo.toml +++ b/relay_client/Cargo.toml @@ -3,12 +3,16 @@ name = "relay_client" version = "0.1.0" edition = "2021" +[features] +default = ["tokio-tungstenite/native-tls"] +rustls = ["tokio-tungstenite/rustls-tls-native-roots"] + [dependencies] relay_rpc = { path = "../relay_rpc" } futures-util = { version = "0.3", default-features = false, features = ["sink", "std"] } thiserror = "1.0" tokio = { version = "1.22", features = ["rt", "time", "sync", "macros", "rt-multi-thread"] } -tokio-tungstenite = { version = "0.17", features = ["connect", "native-tls"] } +tokio-tungstenite = "0.18" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" serde_qs = "0.10" From 0d524d1371c9558fd4747c2d7e73d9d6325d7dd7 Mon Sep 17 00:00:00 2001 From: Ivan Reshetnikov Date: Thu, 16 Mar 2023 09:00:50 +0100 Subject: [PATCH 2/3] ci: add cocogitto to PR workflow --- .github/workflows/ci.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4f8fc24..537dcff 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -78,3 +78,17 @@ jobs: with: github_token: ${{ secrets.github_token }} locale: "US" + + cocogitto: + name: cocogitto + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: "Conventional commit check" + uses: cocogitto/cocogitto-action@v3 + with: + check: true + check-latest-tag-only: true From 05081b7e8f559aca7323bbdd624c8dc6ae6187ad Mon Sep 17 00:00:00 2001 From: Ivan Reshetnikov Date: Thu, 16 Mar 2023 09:07:50 +0100 Subject: [PATCH 3/3] chore: update ci workflow --- .github/workflows/ci.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 537dcff..558306c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -86,6 +86,7 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 0 + ref: ${{ github.event.pull_request.head.sha }} - name: "Conventional commit check" uses: cocogitto/cocogitto-action@v3