Skip to content

chore: remove dead code and add Periphery #43

chore: remove dead code and add Periphery

chore: remove dead code and add Periphery #43

Workflow file for this run

name: Code Quality
on: pull_request
jobs:
xcodegen:
name: XcodeGen
runs-on: macos-15
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install XcodeGen
run: brew install xcodegen
- name: Generate Xcode Configs
run: xcodegen generate
- name: Upload Ichime.xcodeproj Artifact
uses: actions/upload-artifact@v4
with:
name: Ichime.xcodeproj
path: ./Ichime.xcodeproj/
retention-days: 7
- name: Upload Ichime Info.plist Artifact
uses: actions/upload-artifact@v4
with:
name: Ichime_Info.plist
path: ./Ichime/Info.plist
retention-days: 7
- name: Upload Ichime.entitlements Artifact
uses: actions/upload-artifact@v4
with:
name: Ichime.entitlements
path: ./Ichime/Ichime.entitlements
retention-days: 7
- name: Upload TopShelf Info.plist Artifact
uses: actions/upload-artifact@v4
with:
name: TopShelf_Info.plist
path: ./TopShelf/Info.plist
retention-days: 7
- name: Upload TopShelf.entitlements Artifact
uses: actions/upload-artifact@v4
with:
name: TopShelf.entitlements
path: ./TopShelf/TopShelf.entitlements
retention-days: 7
swift_format:
name: swift-format
runs-on: macos-15
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Check Code Formatting
run: swift format lint . --recursive --strict
swiftformat:
name: SwiftFormat
runs-on: macos-15
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Check Code Formatting
run: swiftformat --lint .
swiftlint:
name: SwiftLint
runs-on: macos-15
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install SwiftLint
run: brew install swiftlint
- name: Check Code Formatting
run: swiftlint --strict
periphery:
name: Periphery
runs-on: macos-15
needs: [xcodegen]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Periphery
run: brew install xcodegen periphery
- name: Generate Xcode Configs
run: xcodegen generate
# - name: Download Ichime.xcodeproj Artifact
# uses: actions/download-artifact@v4
# with:
# name: Ichime.xcodeproj
# path: ./Ichime.xcodeproj/
#
# - name: Download Ichime Info.plist Artifact
# uses: actions/download-artifact@v4
# with:
# name: Ichime_Info.plist
# path: ./Ichime/Info.plist
#
# - name: Download Ichime.entitlements Artifact
# uses: actions/download-artifact@v4
# with:
# name: Ichime.entitlements
# path: ./Ichime/Ichime.entitlements
#
# - name: Download TopShelf Info.plist Artifact
# uses: actions/download-artifact@v4
# with:
# name: TopShelf_Info.plist
# path: ./TopShelf/Info.plist
#
# - name: Download TopShelf.entitlements Artifact
# uses: actions/download-artifact@v4
# with:
# name: TopShelf.entitlements
# path: ./TopShelf/TopShelf.entitlements
- name: Check For Unused Code
run: periphery scan --schemes Ichime_tvOS