Skip to content

Bump Sources/Copus from 101a71e to 2554a89 #99

Bump Sources/Copus from 101a71e to 2554a89

Bump Sources/Copus from 101a71e to 2554a89 #99

Workflow file for this run

name: Swift
on:
push:
branches:
- main
paths:
- ".github/workflows/swift.yaml"
- ".gitmodules"
- "**.swift"
- "Package.resolved"
- "Sources/Copus"
pull_request:
paths:
- ".github/workflows/swift.yaml"
- ".gitmodules"
- "**.swift"
- "Package.resolved"
- "Sources/Copus"
jobs:
format:
name: Format
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install swift-format
uses: Cyberbeni/install-swift-tool@v2
with:
url: https://github.com/apple/swift-format
- name: Format Swift code
run: swift-format -r -i ./
- name: Verify formatted code is unchanged
run: git diff --exit-code HEAD -w -G'(^[^# /])|(^#\w)|(^\s+[^#/])' # Ignore whitespace and comments