mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-11-22 08:17:28 +00:00
- iOS tests: turn off coverage and the index store, and skip the benchmarks. No step reads them; the SwiftPM job gates the benchmarks. - SwiftPM: remove the .build cache. A cache hit still recompiled every module, and restoring and saving it took about 35 s per app job. - Cancel the older Build & Test and Dead Code runs of a PR on a new push. - validate_georelays.yml: remove the note that the other PR workflows do not cancel old runs.
39 lines
1.3 KiB
YAML
39 lines
1.3 KiB
YAML
name: Dead Code
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
# A new push to a PR cancels the PR's older run. Other events get the run id
|
|
# as a unique group, so a run on main is never cancelled.
|
|
concurrency:
|
|
group: dead-code-${{ github.event.pull_request.number || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
periphery:
|
|
name: Periphery scan
|
|
runs-on: macos-latest
|
|
timeout-minutes: 30
|
|
# Blocking, like SwiftLint since #1646. The baseline (committed July 8)
|
|
# has been stable across a month of merges — the "drop continue-on-error
|
|
# once the baseline proves stable" condition this job shipped with is met.
|
|
# Known macOS-scan false positives stay suppressed by the baseline; only
|
|
# NEW dead code fails the job (--strict below).
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v5
|
|
|
|
- name: Install Periphery
|
|
# homebrew-core formula; the peripheryapp tap lags years behind.
|
|
run: brew install periphery
|
|
|
|
- name: Scan for dead code
|
|
# Config comes from .periphery.yml; known findings (mostly iOS-only
|
|
# code invisible to a macOS scan) are suppressed by the committed
|
|
# baseline. --strict fails the step when NEW dead code appears.
|
|
run: periphery scan --strict --disable-update-check
|