Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/scribe-org/Scribe-iOS into …
Browse files Browse the repository at this point in the history
…test-CI-workflow-with-cached-data
  • Loading branch information
fabulouiOS-monk committed Sep 4, 2024
2 parents df14fec + 34db0f1 commit 695e81d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 21 deletions.
39 changes: 19 additions & 20 deletions .github/workflows/pr_ci.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: Swift Unit Test CI

name: pr_ci
on:
pull_request:
branches:
Expand All @@ -9,26 +8,26 @@ on:
jobs:
test:
runs-on: macos-latest
name: Run Unit Tests

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

- name: Set up Xcode
run: sudo xcode-select -switch /Applications/Xcode.app
- name: Checkout code
uses: actions/checkout@v3

- 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: Set up Xcode
run: sudo xcode-select -switch /Applications/Xcode.app

- name: Test
run: |
xcodebuild -scheme Scribe -destination 'platform=iOS Simulator,name=iPhone 15,OS=latest' test
- 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
1 change: 0 additions & 1 deletion .github/workflows/pr_swiftlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:
jobs:
swiftlint:
runs-on: ubuntu-latest

name: Run SwiftLint

steps:
Expand Down

0 comments on commit 695e81d

Please sign in to comment.