Skip to content

Linting

Linting #2

Workflow file for this run

name: "Lint"
run-name: Linting
on:
push: # pull_request
paths:
- '.github/workflows/swiftlint.yml'
- '.swiftlint.yml'
- '**/*.swift'
jobs:
lint:
runs-on: macos-14
steps:
- name: Print job info
run: |
echo "The job was triggered by a ${{ github.event_name }} event and is now running on a ${{ runner.os }} server."
echo "The repository is ${{ github.repository }} and the branch is ${{ github.ref }}."
echo "Available XCode versions:"
sudo ls -1 /Applications | grep "Xcode"
echo "Selected XCode version:"
/usr/bin/xcodebuild -version
- name: Check out repository code
uses: actions/checkout@v4
- name: Install SwiftLint
run: |
bundle install
cd Example
bundle exec pod install
- name: Run SwitLint
run: ./Pods/SwiftLint/swiftlint