Skip to content

Cleanup slice2cpp metadata #42

Cleanup slice2cpp metadata

Cleanup slice2cpp metadata #42

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-lint:
name: Swift Lint
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install SwiftLints
run: brew install swiftformat
- name: SwiftLint
working-directory: swift
run: swiftlint --config .swiftlint.yml --strict
swift-format:
name: Swift Format
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install SwiftFormat
run: brew install swiftformat
- name: SwiftFormat
working-directory: swift
run: swiftformat --lint --verbose **/*.swift