Skip to content

Commit

Permalink
Add build action on GitHub runners
Browse files Browse the repository at this point in the history
  • Loading branch information
vishnuravi committed Apr 3, 2024
1 parent 303d9f8 commit ad25ad5
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,27 @@ jobs:
name: Markdown Link Check
uses: StanfordBDHG/.github/.github/workflows/markdown-link-check.yml@v2
permissions:
contents: read
contents: read
buildandtest:
name: Build and Test
runs-on: macos-13
defaults:
run:
working-directory: version2/LifeSpace
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 -workspace LifeSpace.xcworkspace -scheme LifeSpace -destination 'platform=iOS Simulator,name=iPhone 13'

0 comments on commit ad25ad5

Please sign in to comment.