Skip to content

Commit

Permalink
Address CI Fails
Browse files Browse the repository at this point in the history
  • Loading branch information
PSchmiedmayer committed Jan 21, 2025
1 parent 4e73f72 commit 1dfa1e1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
with:
codeql: true
fastlanelane: codeql
xcodeversion: "16.1" # Temporary workaround for: https://github.com/actions/runner-images/issues/11335. Remove when resolved.
pylint:
name: PyLint
runs-on: ubuntu-latest
Expand Down
7 changes: 3 additions & 4 deletions PAWS/Account/DateOfEnrollment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ import SpeziViews
import SwiftUI


// swiftlint:disable file_types_order
private struct DisplayView: DataDisplayView {
private let value: Date

@Environment(\.locale)
private var locale
@Environment(\.locale) private var locale

private var formatStyle: Date.FormatStyle {
.init()
Expand Down Expand Up @@ -60,10 +60,9 @@ extension AccountDetails {
displayView: DisplayView.self,
entryView: EntryView.self
)
public var dateOfEnrollment: Date?
public var dateOfEnrollment: Date? // swiftlint:disable:this attributes
}


@KeyEntry(\.dateOfEnrollment)
extension AccountKeys {}

14 changes: 14 additions & 0 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,20 @@ platform :ios do
end
end

desc "CodeQL"
lane :codeql do
ENV["FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT"] = "320" # CodeQL runs on GitHub CI. We need much higher timeout here.
build_app(
skip_archive: true,
skip_codesigning: true,
derived_data_path: ".derivedData",
xcargs: [
"-skipPackagePluginValidation",
"-skipMacroValidation"
]
)
end

desc "Build app"
lane :build do
build_app(
Expand Down

0 comments on commit 1dfa1e1

Please sign in to comment.