Skip to content

Switch Prefire to a fork that fixes the configuration and templating,… #116

Switch Prefire to a fork that fixes the configuration and templating,…

Switch Prefire to a fork that fixes the configuration and templating,… #116

Workflow file for this run

# This workflow will build a Swift project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
name: Tests
on:
push:
branches: [ main ]
pull_request:
jobs:
tests:
runs-on: macos-13
steps:
- name: Checkout code and snapshots
uses: nschloe/action-cached-lfs-checkout@v1
with:
submodules: recursive
- name: Configure Xcode 15
run: |
sudo xcode-select -s /Applications/Xcode_15.2.app
- name: Run tests
run: xcodebuild test -scheme 'Compound' -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 15,OS=17.2' -skipPackagePluginValidation -resultBundlePath Logs/CompoundTests.xcresult
- name: Zip artifacts
if: failure() # We only care about artefacts if the tests fail
run: zip -r Logs/CompoundTests.xcresult.zip Logs/CompoundTests.xcresult/
- name: Archive artifacts
uses: actions/upload-artifact@v3
if: failure() # We only care about artefacts if the tests fail
with:
name: test-results
path: Logs/CompoundTests.xcresult.zip
retention-days: 1
if-no-files-found: ignore
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
xcode: true
xcode_archive_path: Logs/CompoundTests.xcresult