Skip to content

Fix typo

Fix typo #264

Workflow file for this run

name: Formatting Code
on:
workflow_dispatch:
pull_request:
branches:
- main
jobs:
swiftformat:
name: Swift
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Check for Swift file changes
id: changes
uses: dorny/paths-filter@v3
with:
filters: |
swift:
- '**/*.swift'
- uses: SwiftyLab/setup-swift@latest
if: steps.changes.outputs.swift == 'true'
with:
swift-version: 6.2
- name: Cache SwiftPM artifacts
if: steps.changes.outputs.swift == 'true'
uses: actions/cache@v4
with:
path: |
~/.swiftpm
.build
key: ${{ runner.os }}-swiftpm-format-${{ hashFiles('**/Package.swift') }}
restore-keys: |
${{ runner.os }}-swiftpm-format
- name: Format code
if: steps.changes.outputs.swift == 'true'
run: Scripts/format.sh --lint . --reporter github-actions-log