Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Deployment Setup #108

Merged
merged 34 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
a2776cf
Improve Deployment Setup
PSchmiedmayer Oct 29, 2024
84d886a
Implicitly capture error without casting
nriedman Nov 5, 2024
2d9e8e1
Merge branch 'main' into feature/deployment
PSchmiedmayer Nov 13, 2024
383593f
Update Dependencies
PSchmiedmayer Nov 13, 2024
8567d1e
Update Swiftlint Exclude for Autogenerated Files
PSchmiedmayer Nov 13, 2024
04f23e3
Update
PSchmiedmayer Nov 13, 2024
1e6d58c
Update Setup
PSchmiedmayer Nov 13, 2024
91b414e
Use BDHG Action
PSchmiedmayer Nov 13, 2024
7b7d47e
Update
PSchmiedmayer Nov 19, 2024
777ce9d
Fix Crash
PSchmiedmayer Nov 19, 2024
8d3cc7e
Fix
PSchmiedmayer Nov 21, 2024
808a395
Update GitIgnore
PSchmiedmayer Nov 21, 2024
7a1e68c
Update GitIgnore
PSchmiedmayer Nov 21, 2024
b5bbbe0
Update Fastlane Setup
PSchmiedmayer Nov 21, 2024
b5dd716
Update Fastlane Setup
PSchmiedmayer Nov 21, 2024
f4d49f3
Update Setup
PSchmiedmayer Nov 21, 2024
ec3969d
Improve Onboarding Flow
PSchmiedmayer Nov 22, 2024
d2055ba
Update Inital Screen
PSchmiedmayer Nov 22, 2024
9784905
Update Assets
PSchmiedmayer Nov 22, 2024
de47904
Remove workaround again
Supereg Nov 24, 2024
d394dc0
Use fix version
Supereg Nov 24, 2024
bba24ba
Package.resolved and localizable strings
nriedman Dec 3, 2024
e58f70f
Change expectedSheetContent logic
nriedman Dec 3, 2024
1c976de
Control timezone in recent vitals section tests
nriedman Dec 3, 2024
77c3cda
Correct logic for expectedSheetContent.
nriedman Dec 3, 2024
64d7d0b
Update logic for expectedSheetView
nriedman Dec 4, 2024
7c69924
Update UI Tests
PSchmiedmayer Dec 4, 2024
352e4c2
Fix Swiftlint
PSchmiedmayer Dec 4, 2024
2a5899b
Reduce Diff
PSchmiedmayer Dec 4, 2024
60908e5
Update Testing Setup
PSchmiedmayer Dec 4, 2024
0b539a9
Fix Diff
PSchmiedmayer Dec 4, 2024
95b95e2
Refreshable content protocol, disable chart interactions
nriedman Dec 6, 2024
bf83d08
Upgrade to SpeziFirebase fix
Supereg Dec 8, 2024
262a5cc
Release versions
Supereg Dec 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 62 additions & 4 deletions .github/workflows/beta-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,81 @@ on:
branches:
- main
workflow_dispatch:
inputs:
environment:
description: |
The GitHub deployment environment.
required: true
default: 'development'
type: choice
options:
- development
- staging
- production
workflow_call:
inputs:
environment:
description: |
The GitHub deployment environment.
required: false
type: string
default: staging

concurrency:
group: Beta-Deployment
cancel-in-progress: false

jobs:
determineenvironment:
name: Determine Environment
runs-on: ubuntu-latest
outputs:
environment: ${{ steps.determineenvironment.outputs.environment }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Determine Environment
id: determineenvironment
run: |
if [[ -z "${{ inputs.environment }}" ]]; then
echo "environment=staging" >> $GITHUB_OUTPUT
else
echo "environment=${{ inputs.environment }}" >> $GITHUB_OUTPUT
fi
vars:
name: Inject Environment Variables In Deployment Workflow
needs: determineenvironment
runs-on: ubuntu-latest
environment: ${{ needs.determineenvironment.outputs.environment }}
outputs:
firebaseprojectid: ${{ vars.FIREBASE_PROJECT_ID }}
appidentifier: ${{ vars.APP_IDENTIFIER }}
provisioningProfileName: ${{ vars.PROVISIONING_PROFILE_NAME }}
steps:
- run: |
echo "Injecting Environment Variables In Deployment Workflow:"
echo "firebaseprojectid: ${{ vars.FIREBASE_PROJECT_ID }}"
echo "appidentifier: ${{ vars.APP_IDENTIFIER }}"
echo "provisioningProfileName: ${{ vars.PROVISIONING_PROFILE_NAME }}"
buildandtest:
name: Build and Test
needs: determineenvironment
uses: ./.github/workflows/build-and-test.yml
permissions:
contents: read
secrets: inherit
iosapptestflightdeployment:
name: iOS App TestFlight Deployment
needs: buildandtest
needs: [determineenvironment, vars, buildandtest]
uses: StanfordBDHG/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
permissions:
contents: read
with:
runsonlabels: '["macOS", "self-hosted"]'
googleserviceinfoplistpath: 'ENGAGEHF/Supporting Files/GoogleService-Info.plist'
environment: ${{ needs.determineenvironment.outputs.environment }}
googleserviceinfoplistpath: 'PAWS/Supporting Files/GoogleService-Info.plist'
setupsigning: true
fastlanelane: beta
secrets: inherit
setupfirebaseemulator: true
firebaseemulatorimport: ./firebase --project ${{ needs.vars.outputs.firebaseprojectid }}
fastlanelane: deploy environment:"${{ needs.determineenvironment.outputs.environment }} appidentifier:"${{ needs.vars.outputs.appidentifier }} provisioningProfile:"${{ needs.vars.outputs.provisioningProfileName }}"
secrets: inherit
19 changes: 4 additions & 15 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,11 @@ on:
workflow_dispatch:
workflow_call:

concurrency:
group: Build-and-Test-${{ github.ref }}
cancel-in-progress: true

jobs:
reuse_action:
name: REUSE Compliance Check
uses: StanfordBDHG/.github/.github/workflows/reuse.yml@v2
permissions:
contents: read
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
uses: StanfordBDHG/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#
# This source file is part of the Stanford Spezi open source project
#
# SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)
#
# SPDX-License-Identifier: MIT
#

name: Static Analysis

on:
pull_request:
workflow_dispatch:
workflow_call:

concurrency:
group: Static-Analysis-${{ github.ref }}
cancel-in-progress: true

jobs:
reuse_action:
name: REUSE Compliance Check
uses: StanfordBDHG/.github/.github/workflows/reuse.yml@v2
permissions:
contents: read
swiftlint:
name: SwiftLint
uses: StanfordBDHG/.github/.github/workflows/swiftlint.yml@v2
permissions:
contents: read
# periphery:
# name: Periphery
# uses: StanfordBDHG/.github/.github/workflows/periphery.yml@v2
# permissions:
# contents: read
# with:
# runsonlabels: '["macOS", "self-hosted"]'
markdownlinkcheck:
name: Markdown Link Check
uses: StanfordBDHG/.github/.github/workflows/markdown-link-check.yml@v2
permissions:
contents: read
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ firebase-debug.log*
firebase-debug.*.log*

# Firebase cache
.firebase/
firebase/
15 changes: 15 additions & 0 deletions .periphery.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#
# This source file is part of the ENGAGE-HF based on the Stanford Spezi Template Application project
#
# SPDX-FileCopyrightText: 2023 Stanford University
#
# SPDX-License-Identifier: MIT
#

project: ENGAGEHF.xcodeproj
schemes:
- ENGAGEHF
targets:
- ENGAGEHF
- ENGAGEHFTests
- ENGAGEHFUITests
1 change: 1 addition & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ excluded: # paths to ignore during linting. Takes precedence over `included`.
- .swiftpm
- .codeql
- .derivedData
- fastlane/SnapshotHelper.swift

closure_body_length: # Closure bodies should not span too many lines.
- 35 # warning - default: 20
Expand Down
Loading
Loading