Skip to content

Add basic GitHub Actions project setup #23

Add basic GitHub Actions project setup

Add basic GitHub Actions project setup #23

Workflow file for this run

name: iOS Test Suite
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
name: Run tests with fastlane
runs-on: macos-15
outputs:
xcresult_path: ${{ steps.fastlane-ios-tests.outputs.xcresult_path }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install tools
run: |
brew bundle install
bundler install
- name: Set up xcconfig secrets (see README.md#quick-start)
env:
BIKE_INDEX_DEVELOPMENT_XCCONFIG: ${{ secrets.BIKE_INDEX_DEVELOPMENT_XCCONFIG }}
run: |
echo "$BIKE_INDEX_DEVELOPMENT_XCCONFIG" >> BikeIndex-development.xcconfig
- name: List available simulators
run: xcodebuild -scheme Debug\ \(development\) -project BikeIndex.xcodeproj -showdestinations
- name: Run tests
id: fastlane-ios-tests
run: bundle exec fastlane ios tests
- uses: actions/upload-artifact@v4
with:
name: TestResult.xcresult
path: "fastlane/test_output/Debug (development).xcresult"
compression-level: 9 # maximum compression