Skip to content

Commit

Permalink
chore: checking path for template in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
GMinucci committed Jan 16, 2025
1 parent f198085 commit 97d1a0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Templates/ios/Variants.swift.template.gyb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def encode(string, cipher):
// Variants
//
// Copyright (c) Backbase B.V. - https://www.backbase.com
// Created by Arthur Alves 2
// Created by Arthur Alves
//

import Foundation
Expand Down
3 changes: 3 additions & 0 deletions Tests/VariantsCoreTests/VariantsFileFactoryTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ class VariantsFileFactoryTests: XCTestCase {
let variantsFilePath = Bundle(for: type(of: self)).path(forResource: "Resources/ios/Variants", ofType: "swift")
XCTAssertNotNil(variantsFilePath)
guard let variantsFile = variantsFilePath else { return }

XCTAssertTrue(false, "Reading template path from \(try! TemplateDirectory().path.string)")

Check failure on line 78 in Tests/VariantsCoreTests/VariantsFileFactoryTests.swift

View workflow job for this annotation

GitHub Actions / SwiftLint

Force tries should be avoided (force_try)

XCTAssertEqual(try String(contentsOfFile: variantsFile), variantsSwiftContent)
}

Expand Down

0 comments on commit 97d1a0d

Please sign in to comment.