mirror of
https://github.com/apple/swift-crypto
synced 2026-11-22 04:30:39 +00:00
## Motivation As part of the Github Actions CI migration we held off enabling the format check and moving to the same formatting rules as Swift NIO, but we'd like to do that now. ## Modifications - Add a script to generate (and update) the `.swiftformatignore` file since this repo only wants to format a specific set of files matching a pattern. - Generate and commit the `.swiftformatignore` file. - Run the fomatter and commit the results. - Additional commits to satisfy the remaining linter rules that weren't auto-fixed by swift-format. - Enable the format check in CI. ## Result - Code that's not shared is formatted with a style consistent with the other repos this team maintain. - CI is now checking code format again. --------- Co-authored-by: Cory Benfield <lukasa@apple.com> Co-authored-by: Rick Newton-Rogers <rnro@apple.com>
41 lines
1.5 KiB
YAML
41 lines
1.5 KiB
YAML
name: PR
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, reopened, synchronize]
|
|
|
|
jobs:
|
|
soundness:
|
|
name: Soundness
|
|
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main
|
|
with:
|
|
license_header_check_project_name: "SwiftCrypto"
|
|
docs_check_enabled: false
|
|
|
|
cmake-lists:
|
|
name: Check cmake lists
|
|
uses: apple/swift-nio/.github/workflows/swift_matrix.yml@main
|
|
with:
|
|
name: "Check cmake lists"
|
|
matrix_linux_command: ./scripts/check-cmake-lists.sh
|
|
|
|
unit-tests:
|
|
name: Unit tests
|
|
uses: apple/swift-nio/.github/workflows/unit_tests.yml@main
|
|
with:
|
|
linux_5_9_arguments_override: "--explicit-target-dependency-import-check error"
|
|
linux_5_10_arguments_override: "--explicit-target-dependency-import-check error"
|
|
linux_6_0_arguments_override: "--explicit-target-dependency-import-check error"
|
|
linux_nightly_6_0_arguments_override: "--explicit-target-dependency-import-check error"
|
|
linux_nightly_main_arguments_override: "--explicit-target-dependency-import-check error"
|
|
windows_6_0_enabled: true
|
|
windows_nightly_6_0_enabled: true
|
|
windows_nightly_main_enabled: true
|
|
windows_6_0_arguments_override: "--explicit-target-dependency-import-check error"
|
|
windows_nightly_6_0_arguments_override: "--explicit-target-dependency-import-check error"
|
|
windows_nightly_main_arguments_override: "--explicit-target-dependency-import-check error"
|
|
|
|
cxx-interop:
|
|
name: Cxx interop
|
|
uses: apple/swift-nio/.github/workflows/cxx_interop.yml@main
|