GT Add swiftlint config and workflow #24
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Swift Lint | |
on: | |
pull_request: | |
branches: [ develop, master, feature/* ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
swift_lint: | |
runs-on: macos-14 | |
env: | |
FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT: 60 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install SwiftLint | |
run: brew install swiftlint | |
- name: Pod Install | |
uses: ./.github/actions/pod-install | |
- name: Swift Lint | |
run: bundle exec fastlane cru_shared_lane_swift_lint config_file:./.swiftlint.yml raise_if_swiftlint_error:true |