Skip to content

Add basic GitHub Actions project setup #14

Add basic GitHub Actions project setup

Add basic GitHub Actions project setup #14

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
steps:
- name: Checkout
uses: actions/checkout@v4
- run: |
brew bundle install
bundler install
- name: Set up xcconfig secrets (see README#quick-start)
run: |
echo "API_SECRET = ${{ secrets.API_SECRET }}" >> BikeIndex-development.xcconfig
echo "API_CLIENT_ID = ${{ secrets.API_CLIENT_ID }}" >> BikeIndex-development.xcconfig
echo "API_HOST = ${{ vars.API_HOST }}" >> BikeIndex-development.xcconfig
echo "API_PORT = ${{ vars.API_PORT }}" >> BikeIndex-development.xcconfig
echo "API_REDIRECT_URI = ${{ vars.API_REDIRECT_URI }}" >> BikeIndex-development.xcconfig
echo "DEVELOPMENT_TEAM = ${{ vars.DEVELOPMENT_TEAM }}" >> BikeIndex-development.xcconfig
echo "PRODUCT_BUNDLE_IDENTIFIER = ${{ vars.PRODUCT_BUNDLE_IDENTIFIER }}" >> BikeIndex-development.xcconfig
- uses: actions/upload-artifact@v4
with:
name: config
path: BikeIndex-development.xcconfig
- run: |
xcodebuild -showBuildSettings -scheme Debug\ \(development\) -project BikeIndex.xcodeproj -showdestinations
bundle exec fastlane ios tests