An attempt to test tangled CI
+19
.tangled/workflows/lint.yml
+9
-2
flake.nix
History
3 rounds
1 comment
1 commit
expand
collapse
Add a Spindle pipeline that checks formatting on push to main and on
pull requests using `nix fmt -- --fail-on-change`. This uses the
treefmt-nix configuration from flake.nix as the single source of truth
for all formatting rules (nixfmt, shfmt, swift-format).
Since the app is macOS-only (Swift + AppKit/SwiftUI), we can't build
or test on Linux CI, but we can verify formatting.
Changes to flake.nix:
- Add x86_64-linux to systems so treefmt evaluates on Linux CI
- Gate packages.default behind stdenv.hostPlatform.isDarwin since the
Swift/macOS derivation can't build on Linux
1/1 success
expand
collapse
expand 1 comment
1 commit
expand
collapse
Add a Spindle pipeline that checks formatting on push to main and on
pull requests using `nix fmt -- --fail-on-change`. This uses the
treefmt-nix configuration from flake.nix as the single source of truth
for all formatting rules (nixfmt, shfmt, swift-format).
Since the app is macOS-only (Swift + AppKit/SwiftUI), we can't build
or test on Linux CI, but we can verify formatting.
Changes to flake.nix:
- Add x86_64-linux to systems so treefmt evaluates on Linux CI
- Gate packages.default behind stdenv.hostPlatform.isDarwin since the
Swift/macOS derivation can't build on Linux
1/1 success
expand
collapse
expand 0 comments
1 commit
expand
collapse
Add a Spindle pipeline that checks formatting on push to main and on
pull requests. Since the app is macOS-only (Swift + AppKit/SwiftUI),
we can't build or test on Linux CI, but we can verify formatting.
The workflow invokes swift-format, nixfmt, and shfmt directly with
flags matching the treefmt-nix configuration from flake.nix. The
treefmt config reference is documented in the file header so the two
stay in sync.
Steps:
- swift-format lint --strict --recursive on Sources/, Tests/, Package.swift
- nixfmt --check on all tracked *.nix files (via git ls-files)
- shfmt -d -i 2 -s on scripts/
So it looks like comments are global, for the entire patch