Skip to content

Commit

Permalink
Improve GitHub Checks
Browse files Browse the repository at this point in the history
  • Loading branch information
tattn committed Oct 18, 2023
1 parent e489391 commit 48920c2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,14 @@ jobs:

test-ui-preview:
runs-on: macOS-13
permissions:
checks: write

steps:
- uses: actions/checkout@main
- name: Build
- name: UI test
run: set -o pipefail && make test-ui-preview | xcpretty
- uses: kishikawakatsumi/xcresulttool@v1
with:
path: /tmp/UITestResults.xcresult
if: success() || failure()
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ build-ui-preview:
cd app/xcode/App && xcodebuild -project VCam.xcodeproj -scheme VCamUIPreview -derivedDataPath /tmp/build clean build

test-ui-preview:
cd app/xcode/App && xcodebuild -project VCam.xcodeproj -scheme VCamUIPreviewUITests -derivedDataPath /tmp/build test CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
cd app/xcode/App && xcodebuild -project VCam.xcodeproj -scheme VCamUIPreviewUITests -derivedDataPath /tmp/build -resultBundlePath /tmp/UITestResults test CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO

Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ final class VCamUIPreviewUITests: XCTestCase {
}

XCTContext.runActivity(named: "Check VCamUI") { _ in
XCTAssertTrue(app.buttons["Main"].exists)
XCTAssertTrue(app.buttons[L10n.main.text].exists)
}
}
}

0 comments on commit 48920c2

Please sign in to comment.