Skip to content

Commit

Permalink
Update CI scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
vishnuravi committed Aug 14, 2024
1 parent 5e6f0f5 commit 286d534
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .github/workflows/beta-deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#
# This source file is part of LifeSpace based on the Stanford Spezi Template Application project
#
# SPDX-FileCopyrightText: 2023 Stanford University
#
# SPDX-License-Identifier: MIT
#

name: Beta Deployment

on:
push:
branches:
- main
workflow_dispatch:

jobs:
buildandtest:
name: Build and Test
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Add Mapbox credentials
uses: extractions/netrc@v1
with:
machine: api.mapbox.com
username: mapbox
password: ${{ secrets.MAPBOX_TOKEN }}
- name: Write Mapbox credentials to file for Xcode build
run: echo "${{ secrets.MAPBOX_TOKEN }}" > .mapbox
- name: Set up Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.4'
- name: Build and Test
run: set -o pipefail && xcodebuild test -project LifeSpace.xcodeproj -scheme LifeSpace -destination 'platform=iOS Simulator,name=iPhone 15 Pro' | xcpretty
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ jobs:
with:
xcode-version: '15.4'
- name: Build and Test
run: xcodebuild test -project LifeSpace.xcodeproj -scheme LifeSpace -destination 'platform=iOS Simulator,name=iPhone 15 Pro'
run: set -o pipefail && xcodebuild test -project LifeSpace.xcodeproj -scheme LifeSpace -destination 'platform=iOS Simulator,name=iPhone 15 Pro' | xcpretty

0 comments on commit 286d534

Please sign in to comment.