Skip to content

Commit 77168d7

Browse files
authored
Adopt swiftlang soundness workflow
Replaces our lint workflow with a more general solution from the swiftlang/github-workflow repo.
1 parent 6b25a60 commit 77168d7

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/lint.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,25 @@ on:
77
branches: ["main"]
88

99
jobs:
10-
lint:
11-
name: Lint
10+
validate_format_config:
11+
name: Validate Format Config
1212
runs-on: ubuntu-latest
13-
container: swift:6.0-jammy
14-
1513
steps:
1614
- name: Checkout repo
1715
uses: actions/checkout@v4
1816

1917
- name: Install apt dependencies
20-
run: apt-get -qq update && apt-get -qq -y install curl
18+
run: sudo apt-get -qq update && sudo apt-get -qq -y install curl
2119

2220
- name: Compare against swift-mmio swift-format config
2321
run: |
24-
curl -sL https://raw.githubusercontent.com/apple/swift-mmio/refs/heads/main/SupportingFiles/Tools/swift-format/.swift-format -o .swift-format-mmio
22+
curl -sL https://raw.githubusercontent.com/apple/swift-mmio/refs/heads/main/.swift-format -o .swift-format-mmio
2523
diff .swift-format .swift-format-mmio
2624
27-
- name: Lint
28-
run: swift-format lint --recursive --strict .
25+
soundness:
26+
name: Soundness
27+
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main
28+
with:
29+
api_breakage_check_enabled: false # this repo doesn't vend any API
30+
license_header_check_enabled: false # feature: https://github.com/swiftlang/github-workflows/issues/78
31+
license_header_check_project_name: "Swift.org" # bug: https://github.com/swiftlang/github-workflows/issues/76

0 commit comments

Comments
 (0)