Skip to content

fix: sort imports in test files #2

fix: sort imports in test files

fix: sort imports in test files #2

Workflow file for this run

name: SwiftLint
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: swiftlint-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: SwiftLint
runs-on: ubuntu-latest
container: swift:6.2
steps:
- uses: actions/checkout@v5
- name: Restore swiftlint cache
id: cache-swiftlint-restore
uses: actions/cache/restore@v4
with:
path: /usr/local/bin/swiftlint
key: ${{ runner.os }}-swiftlint-v1
- name: Install swiftlint
if: steps.cache-swiftlint-restore.outputs.cache-hit != 'true'
run: |
git clone --depth 1 --branch main https://github.com/realm/SwiftLint.git
cd SwiftLint
swift build -c release
cp .build/release/swiftlint /usr/local/bin/
cd ..
rm -rf SwiftLint
- name: Lint
run: swiftlint lint --strict --reporter github-actions-logging
- name: Save swiftlint cache
uses: actions/cache/save@v4
if: steps.cache-swiftlint-restore.outputs.cache-hit != 'true'
with:
path: /usr/local/bin/swiftlint
key: ${{ runner.os }}-swiftlint-v1