Skip to content

Commit

Permalink
Merge pull request #500 from fabulouiOS-monk/Create-GitHub-Actions-wo…
Browse files Browse the repository at this point in the history
…rkflow-to-run-CI-process-499

Create GitHub actions workflow to run ci process 499
  • Loading branch information
andrewtavis committed Sep 3, 2024
2 parents e983806 + 788589a commit b29fc0f
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/pr_ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: pr_ci

on:
pull_request:
branches:
- main
types: [opened, reopened, synchronize]

jobs:
test:
runs-on: macos-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Xcode
run: sudo xcode-select -switch /Applications/Xcode.app

- name: Cache DerivedData
uses: actions/cache@v3
with:
path: ~/Library/Developer/Xcode/DerivedData
key: ${{ runner.os }}-xcode-${{ hashFiles('**/*.swift', '**/project.pbxproj') }}
restore-keys: |
${{ runner.os }}-xcode-
- name: Build
run: |
xcodebuild -scheme Scribe -destination 'platform=iOS Simulator,name=iPhone 15,OS=latest' clean build
- name: Test
run: |
xcodebuild -scheme Scribe -destination 'platform=iOS Simulator,name=iPhone 15,OS=latest' test
10 changes: 10 additions & 0 deletions Scribe.xcodeproj/xcshareddata/xcschemes/Scribe.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "D13E0DC52C86530E007F00AF"
BuildableName = "Tests.xctest"
BlueprintName = "Tests"
ReferencedContainer = "container:Scribe.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
Expand Down

0 comments on commit b29fc0f

Please sign in to comment.