Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test ci workflow with cached data #501

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pr_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
uses: actions/cache@v3
with:
path: ~/Library/Developer/Xcode/DerivedData
key: ${{ runner.os }}-xcode-${{ hashFiles('**/*.swift', '**/project.pbxproj') }}
key: ${{ runner.os }}-xcode-${{ hashFiles('**/project.pbxproj') }}
restore-keys: |
${{ runner.os }}-xcode-
- name: Build
Expand Down
20 changes: 20 additions & 0 deletions Scribe.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@
5A0A4C2E2C207C34003ADE27 /* Localizable.xcstrings in Resources */ = {isa = PBXBuildFile; fileRef = 5A0A4C2B2C207C34003ADE27 /* Localizable.xcstrings */; };
5A8FFB6B2C5A9D9C00F4B571 /* English.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = D1AFDF3D29CA66D00033BF27 /* English.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
5A8FFB702C5E5A6F00F4B571 /* ENLanguageData.sqlite in Resources */ = {isa = PBXBuildFile; fileRef = 5A8FFB6E2C5E575B00F4B571 /* ENLanguageData.sqlite */; };
693150472C881DCE005F99E8 /* BaseTableViewControllerTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 693150462C881DCE005F99E8 /* BaseTableViewControllerTest.swift */; };
69B81EBC2BFB8C77008CAB85 /* TipCardView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 69B81EBB2BFB8C77008CAB85 /* TipCardView.swift */; };
84AF4D882C3575EA009AE0D2 /* UIDeviceExtensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84AF4D872C3575EA009AE0D2 /* UIDeviceExtensions.swift */; };
CE1378C428F5D7AC00E1CBC2 /* ScribeColor.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE1378C228F5D7AC00E1CBC2 /* ScribeColor.swift */; };
Expand Down Expand Up @@ -925,6 +926,7 @@
38DD94F022D6A40000FF8845 /* Extensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Extensions.swift; sourceTree = "<group>"; };
5A0A4C2B2C207C34003ADE27 /* Localizable.xcstrings */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json.xcstrings; path = Localizable.xcstrings; sourceTree = "<group>"; };
5A8FFB6E2C5E575B00F4B571 /* ENLanguageData.sqlite */ = {isa = PBXFileReference; lastKnownFileType = file; path = ENLanguageData.sqlite; sourceTree = "<group>"; };
693150462C881DCE005F99E8 /* BaseTableViewControllerTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BaseTableViewControllerTest.swift; sourceTree = "<group>"; };
69B81EBB2BFB8C77008CAB85 /* TipCardView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TipCardView.swift; sourceTree = "<group>"; };
84AF4D872C3575EA009AE0D2 /* UIDeviceExtensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIDeviceExtensions.swift; sourceTree = "<group>"; };
CE1378C228F5D7AC00E1CBC2 /* ScribeColor.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ScribeColor.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1310,6 +1312,22 @@
path = German;
sourceTree = "<group>";
};
693150442C881DAB005F99E8 /* Scribe */ = {
isa = PBXGroup;
children = (
693150452C881DB5005F99E8 /* Views */,
);
path = Scribe;
sourceTree = "<group>";
};
693150452C881DB5005F99E8 /* Views */ = {
isa = PBXGroup;
children = (
693150462C881DCE005F99E8 /* BaseTableViewControllerTest.swift */,
);
path = Views;
sourceTree = "<group>";
};
69B81EBA2BFB8C60008CAB85 /* TipCard */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -1358,6 +1376,7 @@
D13E0DC72C86530E007F00AF /* Tests */ = {
isa = PBXGroup;
children = (
693150442C881DAB005F99E8 /* Scribe */,
D13E0DD02C86531C007F00AF /* Keyboards */,
);
path = Tests;
Expand Down Expand Up @@ -2413,6 +2432,7 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
693150472C881DCE005F99E8 /* BaseTableViewControllerTest.swift in Sources */,
D13E0DC92C86530E007F00AF /* TestExtensions.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down
30 changes: 30 additions & 0 deletions Tests/Scribe/Views/BaseTableViewControllerTest.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
//
// BaseTableViewControllerTest.swift
// Tests
//
// Created by Kailash Bora on 04/09/24.
//

import Foundation
@testable import Scribe
import XCTest

final class BaseTableViewControllerTest: XCTestCase {
private var sut: BaseTableViewController!

override func setUp() {
super.setUp()
sut = BaseTableViewController()
}

override func tearDown() {
sut = nil
super.tearDown()
}

func testNumberOfSectionsZero() {
let result = sut.numberOfSections(in: sut.tableView)

XCTAssertEqual(result, 0)
}
}
Loading