Skip to content

Commit

Permalink
[IRP-1015] Add new action before SPM migration
Browse files Browse the repository at this point in the history
  • Loading branch information
robergro committed Jun 26, 2024
1 parent 9a88746 commit 60822ba
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: lint-build
on:
pull_request:
types: [ opened, edited, synchronize ]

jobs:
linter:
uses: adevinta/spark-ios-common/.github/workflows/linter.yml@main
buildAndTest:
uses: adevinta/spark-ios/.github/workflows/buildDemo.yml@main
38 changes: 38 additions & 0 deletions .github/workflows/buildDemo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: build-and-test
on:
workflow_call

env:
app_name: SparkDemo
xcode_path: "/Applications/Xcode_15.4.app"

jobs:
build:
name: Build
runs-on: macos-14
steps:
- name: Set Swift Version
uses: swift-actions/setup-swift@v1
with:
swift-version: ${{ env.swift_version }}
- name: Get swift version
run: swift --version
- name: Select Xcode
run: sudo xcode-select -s ${{ env.xcode_path }}
- name: Checkout Action
uses: actions/checkout@v4
- name: Run xcodegen
uses: xavierLowmiller/[email protected]
with:
spec: project-ci.yml
version: '2.41.0'
- name: Build
run: |
xcodebuild -scheme ${{ env.app_name }} -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 15 pro,OS=17.5' build
- name: Upload xcresult file
uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: ${{ env.app_name }}-${{ github.run_number }}.xcresult
path: ${{ env.app_name }}.xcresult
retention-days: 15

0 comments on commit 60822ba

Please sign in to comment.