Skip to content

Create GitHub actions workflow to run ci process 499 #9

Create GitHub actions workflow to run ci process 499

Create GitHub actions workflow to run ci process 499 #9

Workflow file for this run

name: Swift Unit Test 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