Skip to content

Commit

Permalink
ci: Add swiftlint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippeWeidmann committed Oct 15, 2024
1 parent a0e2fd4 commit ff0b5a0
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/swiftlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: SwiftLint

on:
pull_request:
branches: [ master ]

jobs:
build:
name: SwiftLint
runs-on: [ self-hosted, iOS ]

steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.12.1
with:
access_token: ${{ github.token }}
- uses: jdx/mise-action@v2
with:
cache: false
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: SwiftLint
run: swiftlint --config .swiftlint.yml --config .swiftlint-ci.yml --reporter github-actions-logging .
1 change: 1 addition & 0 deletions .swiftlint-ci.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
disabled_rules:
- todo
strict: true

0 comments on commit ff0b5a0

Please sign in to comment.