mirror of
https://github.com/apple/swift-algorithms
synced 2026-11-30 04:48:43 +00:00
Enable CI format check (#253)
* Incorporate swift-format formatting fixes * Resolve linting issues * Doc edits, mostly to fix linter-identified issues * Early exit improvements * Indentation fixes * Line lengths to 80 maximum * Implement case binding rule, plus argument line break improvements * Implement NoForceUnwrap rule * Format the tests, as well * Stop masquerading as XCTest
This commit is contained in:
1 parent
f970eb6c62
commit
66ae806bbe
58 files changed
+2488
-1977
No files matched your search
@@ -5,9 +5,23 @@ on:
|
||||
types: [opened, reopened, synchronize]
|
||||
|
||||
jobs:
|
||||
validate_format_config:
|
||||
name: Validate Format Config
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v4
|
||||
- name: Install apt dependencies
|
||||
run: sudo apt-get -qq update && sudo apt-get -qq -y install curl
|
||||
- name: Compare against swift-mmio swift-format config
|
||||
run: |
|
||||
curl -sL https://raw.githubusercontent.com/apple/swift-mmio/refs/heads/main/.swift-format -o .swift-format-mmio
|
||||
diff .swift-format .swift-format-mmio
|
||||
|
||||
tests:
|
||||
name: Test
|
||||
uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main
|
||||
|
||||
soundness:
|
||||
name: Soundness
|
||||
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main
|
||||
@@ -16,5 +30,3 @@ jobs:
|
||||
license_header_check_enabled: false
|
||||
# https://github.com/apple/swift-algorithms/issues/251
|
||||
docs_check_enabled: false
|
||||
# https://github.com/apple/swift-algorithms/issues/252
|
||||
format_check_enabled: false
|
||||
Reference in new issue
Block a user