Skip to content

Commit

Permalink
adds github test action
Browse files Browse the repository at this point in the history
  • Loading branch information
stmitt committed Feb 25, 2025
1 parent 05c6a33 commit 779df34
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/ios_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: XCUI Tests

env:
XCODE_VERSION: 'Xcode_16.0'

on:
push:
branches: [ main, develop, feature/**, bugfix/** ]
pull_request:

jobs:
xcuitests:
runs-on: macos-15
timeout-minutes: 60
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: 'recursive'

- name: Switch to Xcode ${{ env.XCODE_VERSION }}
run: sudo xcode-select --switch /Applications/${{ env.XCODE_VERSION }}.app

- name: Resolve Dependencies
run: swift package resolve

- name: Run UI Tests
run: |
xcodebuild test \
-scheme MapCore-Package \
-destination 'platform=iOS Simulator,OS=18.0,name=iPhone 16 Pro' \
-resultBundlePath TestResults.xcresult \
| xcpretty --report junit --output TestResults.xml
- name: Upload XCResult
uses: actions/upload-artifact@v4
with:
name: XCResult
path: TestResults.xcresult

- name: Upload JUnit Test Results
uses: actions/upload-artifact@v4
with:
name: TestResults
path: TestResults.xml

- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
with:
files: TestResults.xml
check_name: "XCUI Tests Report"

0 comments on commit 779df34

Please sign in to comment.