ALS-1805 [iOS] Remove amplify dependency from the demo app #49
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Unit Tests for iOS | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: [ develop, main ] | |
jobs: | |
test-iOS: | |
name: Run Unit Tests for iOS | |
runs-on: macos-15 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Bundler | |
working-directory: ./LocationServices | |
run: | | |
bundle config --local path ./vendor/bundle | |
bundle config --local deployment true | |
bundle install | |
- name: Setup Config | |
env: | |
config: ${{ secrets.CONFIG }} | |
test_config: ${{ secrets.TEST_CONFIG }} | |
working-directory: ./LocationServices | |
if: ${{ env.config != '' && env.test_config != '' }} | |
run: | | |
base64 -d <<< ${{ env.config }} > Config.xcconfig | |
base64 -d <<< ${{ env.test_config }} > ConfigTest.xcconfig | |
- name: Ensure config files exist | |
working-directory: ./LocationServices | |
run: | | |
touch Config.xcconfig | |
touch ConfigTest.xcconfig | |
- name: Run tests | |
working-directory: ./LocationServices | |
run: bundle exec fastlane run_unit_tests device:"iPhone 14" |