Skip to content

Update to clang-format 19 (#2740) #641

Update to clang-format 19 (#2740)

Update to clang-format 19 (#2740) #641

Workflow file for this run

name: Swift lint and format
on:
workflow_dispatch:
push:
branches: ["main"]
paths:
- "swift/**"
pull_request:
# The branches below must be a subset of the branches above
branches: ["main"]
paths:
- "swift/**"
jobs:
swift-format:
name: Swift Format & Lint
runs-on: macos-14
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install swift-format
run: brew install swift-format
- name: swift-format Format
working-directory: swift
run: swift-format . --recursive --configuration .swift-format.json
- name: swift-format Lint
working-directory: swift
run: swift-format lint . --recursive --strict --configuration .swift-format.json