From b1a6bf56f1ca4dc317a4be37c8ead686c29f1fe0 Mon Sep 17 00:00:00 2001 From: Karol Sygiet Date: Fri, 26 May 2023 14:35:46 +0200 Subject: [PATCH] remove debug method (#1) * remove debug method * add lint workflow * add workflow dispach for docs publishing --- .github/workflows/ci.yaml | 17 +++++++++++++++++ .github/workflows/publish_docs.yaml | 1 + .../JellyfishClientSdk/JellyfishClientSdk.swift | 4 ---- 3 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..9346dd5 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,17 @@ +name: Run lint & tests +on: [push] + +jobs: + lint: + runs-on: macos-12 + steps: + - uses: actions/checkout@v3 + + - name: Install deps + run: brew install swift-format xcbeautify + + - name: Run formatter + run: swift-format format -i -r ./JellyfishClientSdk/Sources/**/*.swift --configuration swift-format-config.json + + - name: Run lint + run: swift-format lint -r ./JellyfishClientSdk/Sources/**/*.swift --configuration swift-format-config.json diff --git a/.github/workflows/publish_docs.yaml b/.github/workflows/publish_docs.yaml index cec1494..d16a4ea 100644 --- a/.github/workflows/publish_docs.yaml +++ b/.github/workflows/publish_docs.yaml @@ -1,5 +1,6 @@ name: Deploy Docs on: + workflow_dispatch: push: tags: - "*" diff --git a/JellyfishClientSdk/Sources/JellyfishClientSdk/JellyfishClientSdk.swift b/JellyfishClientSdk/Sources/JellyfishClientSdk/JellyfishClientSdk.swift index f39a221..cc32287 100644 --- a/JellyfishClientSdk/Sources/JellyfishClientSdk/JellyfishClientSdk.swift +++ b/JellyfishClientSdk/Sources/JellyfishClientSdk/JellyfishClientSdk.swift @@ -3,8 +3,4 @@ public struct JellyfishClientSdk { public init() { } - - public func hello() { - print("SIEMA ENIU") - } }