-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit e10ee11
Showing
30 changed files
with
1,145 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# | ||
# This source file is part of the Stanford Biodesign for Digital Health open-source project | ||
# | ||
# SPDX-FileCopyrightText: 2022 Stanford Biodesign for Digital Health and the project authors (see CONTRIBUTORS.md) | ||
# | ||
# SPDX-License-Identifier: MIT | ||
# | ||
|
||
name: 🐛 Bug report | ||
description: File a bug report | ||
title: "🐛 Bug report: Remove this title with a descriptive title." | ||
labels: ["bug"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thanks for taking the time to fill out this bug report! | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: Description | ||
description: Please provide a description of the bug you encountered. | ||
placeholder: A clear and concise description of the bug. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: reproduction | ||
attributes: | ||
label: Reproduction | ||
description: Please provide a description of how to reproduce the bug. | ||
placeholder: A description of how to reproduce the bug. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: expectedbehavior | ||
attributes: | ||
label: Expected behavior | ||
description: Please provide a clear and concise description of what you expected to happen. | ||
placeholder: A clear and concise description of what you expected to happen. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: additionalcontext | ||
attributes: | ||
label: Additional context | ||
description: Please provide any additional context that might be relevant for your bug report. | ||
placeholder: Any additional context that might be relevant for your bug report. | ||
- type: checkboxes | ||
id: terms | ||
attributes: | ||
label: Code of Conduct | ||
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md) | ||
options: | ||
- label: I agree to follow this project's Code of Conduct and Contributing Guidelines | ||
required: true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# | ||
# This source file is part of the Stanford Biodesign for Digital Health open-source project | ||
# | ||
# SPDX-FileCopyrightText: 2022 Stanford Biodesign for Digital Health and the project authors (see CONTRIBUTORS.md) | ||
# | ||
# SPDX-License-Identifier: MIT | ||
# | ||
|
||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Discussions & Support | ||
url: https://github.com/orgs/StanfordBDHG/discussions | ||
about: We use GitHub Discussions for any discussions and support |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# | ||
# This source file is part of the Stanford Biodesign for Digital Health open-source project | ||
# | ||
# SPDX-FileCopyrightText: 2022 Stanford Biodesign for Digital Health and the project authors (see CONTRIBUTORS.md) | ||
# | ||
# SPDX-License-Identifier: MIT | ||
# | ||
|
||
name: 💾 Internal change | ||
description: Suggest an internal improvement for this project | ||
title: "💾 Internal change: Remove this title with a descriptive title." | ||
labels: ["enhancement"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thanks for taking the time to suggest an internal improvement for this project! | ||
- type: textarea | ||
id: problem | ||
attributes: | ||
label: Problem | ||
description: Please provide a description of the problem the improvement will address. | ||
placeholder: A description of the problem the improvement will address. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: solution | ||
attributes: | ||
label: Solution | ||
description: Please provide a clear and concise description of the improvement and how it should work. | ||
placeholder: A clear and concise description of the improvement and how it should work. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: additionalcontext | ||
attributes: | ||
label: Additional context | ||
description: Please provide any additional context that might be relevant for your improvement. | ||
placeholder: Any additional context that might be relevant for your improvement. | ||
- type: checkboxes | ||
id: terms | ||
attributes: | ||
label: Code of Conduct | ||
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md) | ||
options: | ||
- label: I agree to follow this project's Code of Conduct and Contributing Guidelines | ||
required: true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# | ||
# This source file is part of the Stanford Biodesign for Digital Health open-source project | ||
# | ||
# SPDX-FileCopyrightText: 2022 Stanford Biodesign for Digital Health and the project authors (see CONTRIBUTORS.md) | ||
# | ||
# SPDX-License-Identifier: MIT | ||
# | ||
|
||
name: 🚀 Major feature request | ||
description: Suggest a new idea for this project | ||
title: "🚀 Major feature request: Remove this title with a descriptive title." | ||
labels: ["enhancement", "major version bump"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thanks for taking the time to share the major feature request! | ||
- type: textarea | ||
id: usecase | ||
attributes: | ||
label: Use Case | ||
description: Please provide a description of the use case or context in which the feature will be used. | ||
placeholder: A clear and concise description of the use case or context in which the feature will be used. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: problem | ||
attributes: | ||
label: Problem | ||
description: Please provide a description of the problem the feature will address. | ||
placeholder: A description of the problem the feature will address. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: solution | ||
attributes: | ||
label: Solution | ||
description: Please provide a clear and concise description of the feature and how it should work. | ||
placeholder: A clear and concise description of the feature and how it should work. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: alternatives | ||
attributes: | ||
label: Alternatives considered | ||
description: Please provide a clear and concise description of any alternative solutions or features you've considered. Is there already software that has the behavior you're interested in? What is it, and how does it work? | ||
placeholder: A clear and concise description of any alternative solutions or features you've considered. Is there already software that has the behavior you're interested in? What is it, and how does it work? | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: additionalcontext | ||
attributes: | ||
label: Additional context | ||
description: Please provide any additional context that might be relevant for your feature report | ||
placeholder: Any additional context that might be relevant for your feature report | ||
- type: checkboxes | ||
id: terms | ||
attributes: | ||
label: Code of Conduct | ||
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md) | ||
options: | ||
- label: I agree to follow this project's Code of Conduct and Contributing Guidelines | ||
required: true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# | ||
# This source file is part of the Stanford Biodesign for Digital Health open-source project | ||
# | ||
# SPDX-FileCopyrightText: 2022 Stanford Biodesign for Digital Health and the project authors (see CONTRIBUTORS.md) | ||
# | ||
# SPDX-License-Identifier: MIT | ||
# | ||
|
||
name: 🏎 Minor feature request | ||
description: Suggest an improvement for this project | ||
title: "🏎 Minor feature request: Remove this title with a descriptive title." | ||
labels: ["enhancement", "minor version bump"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thanks for taking the time to share the minor feature request! | ||
- type: textarea | ||
id: problem | ||
attributes: | ||
label: Problem | ||
description: Please provide a description of the problem the feature will address. | ||
placeholder: A description of the problem the feature will address. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: solution | ||
attributes: | ||
label: Solution | ||
description: Please provide a clear and concise description of the feature and how it should work. | ||
placeholder: A clear and concise description of the feature and how it should work. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: additionalcontext | ||
attributes: | ||
label: Additional context | ||
description: Please provide any additional context that might be relevant for your feature report. | ||
placeholder: Any additional context that might be relevant for your feature report. | ||
- type: checkboxes | ||
id: terms | ||
attributes: | ||
label: Code of Conduct | ||
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md) | ||
options: | ||
- label: I agree to follow this project's Code of Conduct and Contributing Guidelines | ||
required: true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<!-- | ||
This source file is part of the Stanford Biodesign for Digital Health open-source project | ||
SPDX-FileCopyrightText: 2022 Stanford Biodesign for Digital Health and the project authors (see CONTRIBUTORS.md) | ||
SPDX-License-Identifier: MIT | ||
--> | ||
|
||
# *Name of the PR* | ||
|
||
## :recycle: Current situation & Problem | ||
*Describe the current situation (if possible, with an exemplary (or real) code snippet and/or where this is used)* | ||
*Please link any open issue that is addressed with this PR* | ||
|
||
## :bulb: Proposed solution | ||
*Describe the solution and how this affects the project and internal structure* | ||
|
||
## :gear: Release Notes | ||
*Add a summary of the feature and possible migration guides if this is a breaking change so this section can be added to the release notes.* | ||
*Include code snippets that provide examples of the feature implemented if it appends or changes the public interface.* | ||
|
||
## :heavy_plus_sign: Additional Information | ||
*Provide some additional information if possible* | ||
|
||
### Related PRs | ||
*Reference the related PRs* | ||
|
||
### Testing | ||
*Are there tests included? If yes, which situations are tested, and which corner cases are missing?* | ||
|
||
### Reviewer Nudging | ||
*Where should the reviewer start? Where is a good entry point?* | ||
|
||
### Code of Conduct & Contributing Guidelines | ||
|
||
By submitting creating this pull request, you agree to follow our [Code of Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md): | ||
- [ ] I agree to follow the [Code of Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md). | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# | ||
# This source file is part of the Stanford Biodesign for Digital Health open-source project | ||
# | ||
# SPDX-FileCopyrightText: 2022 Stanford Biodesign for Digital Health and the project authors (see CONTRIBUTORS.md) | ||
# | ||
# SPDX-License-Identifier: MIT | ||
# | ||
|
||
changelog: | ||
exclude: | ||
authors: | ||
- PaulsAutomationBot | ||
categories: | ||
- title: Semantic Version Major | ||
labels: | ||
- major version bump | ||
- title: Semantic Version Minor | ||
labels: | ||
- bug | ||
- enhancement | ||
- title: Other Changes | ||
labels: | ||
- "*" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# | ||
# This source file is part of the Stanford Biodesign for Digital Health open-source project | ||
# | ||
# SPDX-FileCopyrightText: 2022 Stanford Biodesign for Digital Health and the project authors (see CONTRIBUTORS.md) | ||
# | ||
# SPDX-License-Identifier: MIT | ||
# | ||
|
||
name: Build and Test Swift Package Manager | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
path: | ||
description: 'The path where the Swift Package is located. Defaults to $GITHUB_WORKSPACE' | ||
required: false | ||
type: string | ||
default: '.' | ||
packagename: | ||
description: 'Name of the package required for generating a test coverage' | ||
required: true | ||
type: string | ||
test: | ||
description: 'A flag indicating if the Swift package contains tests' | ||
required: false | ||
type: boolean | ||
default: true | ||
|
||
jobs: | ||
macos: | ||
name: macOS ${{ matrix.configuration }} | ||
runs-on: macos-12 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
configuration: [debug, release, release_testing] | ||
defaults: | ||
run: | ||
working-directory: ${{ inputs.path }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: latest-stable | ||
- name: Check Environment | ||
run: | | ||
xcodebuild -version | ||
swift --version | ||
echo "inputs.packagename: ${{ inputs.packagename }}" | ||
echo "inputs.path: ${{ inputs.path }}" | ||
echo "inputs.test: ${{ inputs.test }}" | ||
echo "matrix.configuration: ${{ matrix.configuration }}" | ||
echo "cache key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}" | ||
- uses: actions/cache@v3 | ||
with: | ||
path: .build | ||
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }} | ||
- name: Release Build | ||
if: matrix.configuration == 'release' | ||
run: swift build -c release | ||
- name: Release Build & Test | ||
if: matrix.configuration == 'release_testing' && inputs.test | ||
run: swift test -c release -Xswiftc -enable-testing -Xswiftc -DRELEASE_TESTING | ||
- name: Debug Build & Test | ||
if: matrix.configuration == 'debug' && inputs.test | ||
run: swift test -c debug --enable-code-coverage -Xswiftc -DCOVERAGE | ||
- name: Convert coverage report | ||
if: matrix.configuration == 'debug' && inputs.test | ||
run: xcrun llvm-cov export -format="lcov" .build/debug/${{ inputs.packagename }}PackageTests.xctest/Contents/MacOS/${{ inputs.packagename }}PackageTests -instr-profile .build/debug/codecov/default.profdata > coverage.lcov | ||
- name: Upload coverage to Codecov | ||
if: matrix.configuration == 'debug' && inputs.test | ||
uses: codecov/codecov-action@v3 |
Oops, something went wrong.