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 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 }} """ 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"