Skip to content

Add basic GitHub Actions project setup #15

Add basic GitHub Actions project setup

Add basic GitHub Actions project setup #15

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)
env:
API_SECRET: ${{ secrets.API_SECRET }}
API_CLIENT_ID: ${{ secrets.API_CLIENT_ID }}
API_HOST: ${{ vars.API_HOST }}
API_PORT: ${{ vars.API_PORT }}
API_REDIRECT_URI: ${{ vars.API_REDIRECT_URI }}
DEVELOPMENT_TEAM: ${{ vars.DEVELOPMENT_TEAM }}
PRODUCT_BUNDLE_IDENTIFIER: ${{ vars.PRODUCT_BUNDLE_IDENTIFIER }}
run: |
echo "API_SECRET = $API_SECRET" >> BikeIndex-development.xcconfig
echo "API_CLIENT_ID = $API_CLIENT_ID" >> BikeIndex-development.xcconfig
echo "API_HOST = $API_HOST" >> BikeIndex-development.xcconfig
echo "API_PORT = $API_PORT" >> BikeIndex-development.xcconfig
echo "API_REDIRECT_URI = $API_REDIRECT_URI" >> BikeIndex-development.xcconfig
echo "DEVELOPMENT_TEAM = $DEVELOPMENT_TEAM" >> BikeIndex-development.xcconfig
echo "PRODUCT_BUNDLE_IDENTIFIER = $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