From 7d48aebc5d0efcd107954bea77213ff5c60e97c2 Mon Sep 17 00:00:00 2001 From: Kamil Strzelecki Date: Sun, 30 Mar 2025 11:31:16 +0200 Subject: [PATCH 1/3] - --- .mise.toml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.mise.toml b/.mise.toml index 24a94b1..513f2cf 100644 --- a/.mise.toml +++ b/.mise.toml @@ -18,7 +18,6 @@ quiet = true run = """ {{ vars.swiftlint }} lint \ --config .swiftlint.yml \ ---reporter relative-path \ --strict \ {{ vars.sources }} """ @@ -30,7 +29,6 @@ run = """ {{ vars.swiftlint }} lint \ --config .swiftlint.yml \ --config .swiftlint.tests.yml \ ---reporter relative-path \ --strict \ {{ vars.tests }} """ From 8cbdf1d13920f88d16e38e52686681aaa581880d Mon Sep 17 00:00:00 2001 From: Kamil Strzelecki Date: Sun, 30 Mar 2025 12:07:38 +0200 Subject: [PATCH 2/3] - --- .swiftlint.tests.yml | 1 + .swiftlint.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.swiftlint.tests.yml b/.swiftlint.tests.yml index ca7bffd..ee516cf 100644 --- a/.swiftlint.tests.yml +++ b/.swiftlint.tests.yml @@ -1,2 +1,3 @@ disabled_rules: + - function_body_length - no_magic_numbers \ No newline at end of file diff --git a/.swiftlint.yml b/.swiftlint.yml index dfecb11..ee18cc7 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -192,4 +192,4 @@ custom_rules: empty_line_after_type_declaration: name: "Empty line after type declaration" message: "Type declaration should start with an empty line." - regex: "( |^)(actor|class|struct|enum|protocol|extension) (?!var)[^\\{]*? \\{(?!\\}) *\\n? *\\S" + regex: "( |^)(actor|class|struct|enum|protocol|extension) (?!var)[^\\{]*? \\{(?!\\n*\\}) *\\n? *\\S" From b0f0328ce0f22bc275d0ec3cc4c1e758addcb885 Mon Sep 17 00:00:00 2001 From: Kamil Strzelecki Date: Sun, 30 Mar 2025 18:47:19 +0200 Subject: [PATCH 3/3] - --- .github/workflows/pull-request.yml | 3 +-- .github/workflows/release.yml | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 5908299..158a6bb 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -2,7 +2,7 @@ name: Pull request on: pull_request jobs: - build: + pull-request: runs-on: macos-15 steps: @@ -12,7 +12,6 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - echo "GITHUB_TOKEN=${{ env.GITHUB_TOKEN }}" >> $GITHUB_ENV curl https://mise.run | sh mise install diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..c38e287 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,21 @@ +name: Release + +on: + push: + tags: + - '*' + +jobs: + release: + runs-on: ubuntu-latest + + steps: + - name: Draft release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + TAG_NAME=${GITHUB_REF#refs/tags/} + gh release create "$TAG_NAME" \ + --repo="$GITHUB_REPOSITORY" \ + --generate-notes \ + --draft \ No newline at end of file