Dashboard Screen #3
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: Lint | |
on: [pull_request] | |
jobs: | |
lint: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.0 # Adjust the Ruby version as needed | |
- name: Install SwiftLint | |
run: brew install swiftlint | |
- name: Install Fastlane | |
run: gem install fastlane | |
- name: Run SwiftLint | |
run: | | |
fastlane lint | |
env: | |
LC_ALL: en_US.UTF-8 | |
LANG: en_US.UTF-8 | |
- name: Upload SwiftLint Report | |
if: failure() | |
uses: actions/upload-artifact@v2 | |
with: | |
name: swiftlint-report | |
path: swiftlint.report.json |