Sets up location services and map #31
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
# | |
# This source file is part of the StrokeCog based on the Stanford Spezi Template Application project | |
# | |
# SPDX-FileCopyrightText: 2023 Stanford University | |
# | |
# SPDX-License-Identifier: MIT | |
# | |
name: Build and Test | |
on: | |
pull_request: | |
workflow_dispatch: | |
workflow_call: | |
jobs: | |
swiftlint: | |
name: SwiftLint | |
uses: StanfordBDHG/.github/.github/workflows/swiftlint.yml@v2 | |
permissions: | |
contents: read | |
markdownlinkcheck: | |
name: Markdown Link Check | |
uses: StanfordBDHG/.github/.github/workflows/markdown-link-check.yml@v2 | |
permissions: | |
contents: read | |
buildandtest: | |
name: Build and Test | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: latest-stable | |
- name: Check Environment | |
run: | | |
xcodebuild -version | |
swift --version | |
- name: Set Mapbox Credentials | |
run: | | |
echo "machine api.mapbox.com" >> ~/.netrc | |
echo "login mapbox" >> ~/.netrc | |
echo "password ${{ secrets.MAPBOX_TOKEN }}" >> ~/.netrc | |
chmod 0600 ~/.netrc | |
- name: Build and Test | |
run: xcodebuild test -project StrokeCog.xcodeproj -scheme StrokeCog -destination 'platform=iOS Simulator,name=iPhone 15' |