-
-
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.
Merge branch 'main' into update-dependencies
- Loading branch information
Showing
9 changed files
with
240 additions
and
100 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,78 @@ | ||
# | ||
# This source file is part of the Stanford Biodesign Digital Health ENGAGE-HF open-source project | ||
# | ||
# SPDX-FileCopyrightText: 2023 Stanford University and the project authors (see CONTRIBUTORS.md) | ||
# | ||
# SPDX-License-Identifier: MIT | ||
# | ||
|
||
name: Build and Test | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
workflow_call: | ||
|
||
jobs: | ||
reuseaction: | ||
name: REUSE Compliance Check | ||
uses: StanfordBDHG/.github/.github/workflows/reuse.yml@v2 | ||
markdownlinkcheck: | ||
name: Markdown Link Check | ||
uses: StanfordBDHG/.github/.github/workflows/markdown-link-check.yml@v2 | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
lfs: 'true' | ||
- name: Git LFS Pull | ||
run: git lfs pull | ||
- name: Use Node.js 22.x | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 22.6.x | ||
- name: Install Dependencies | ||
run: npm run install | ||
- name: Build | ||
run: npm run build | ||
- name: Lint | ||
run: npm run lint:strict | ||
permissions: | ||
contents: read | ||
buildandtest: | ||
name: Build and Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
lfs: 'true' | ||
- name: Git LFS Pull | ||
run: git lfs pull | ||
- name: Use Node.js 22.x | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 22.6.x | ||
- name: Install Dependencies | ||
run: npm run install | ||
- name: Install Firebase CLI | ||
run: npm install -g firebase-tools | ||
- name: Build | ||
run: npm run build | ||
- name: Test | ||
id: test | ||
run: npm run test:ci | ||
- name: Archive Regenerated Test Results | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: test results | ||
path: functions/src/tests/resources | ||
permissions: | ||
contents: read |
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,38 @@ | ||
# | ||
# This source file is part of the Stanford Biodesign Digital Health ENGAGE-HF open-source project | ||
# | ||
# SPDX-FileCopyrightText: 2023 Stanford University and the project authors (see CONTRIBUTORS.md) | ||
# | ||
# SPDX-License-Identifier: MIT | ||
# | ||
|
||
name: CodeQL | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
schedule: | ||
- cron: '0 8 * * 1' | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: 'ubuntu-latest' | ||
permissions: | ||
security-events: write | ||
packages: read | ||
actions: read | ||
contents: read | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v3 | ||
with: | ||
languages: javascript-typescript | ||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v3 |
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,86 @@ | ||
# | ||
# This source file is part of the Stanford Biodesign Digital Health ENGAGE-HF open-source project | ||
# | ||
# SPDX-FileCopyrightText: 2023 Stanford University and the project authors (see CONTRIBUTORS.md) | ||
# | ||
# SPDX-License-Identifier: MIT | ||
# | ||
|
||
name: Deployment | ||
|
||
on: | ||
push: | ||
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: development | ||
|
||
concurrency: | ||
group: deployment | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
determineenvironment: | ||
name: Determine Environment | ||
runs-on: ubuntu-latest | ||
outputs: | ||
environment: ${{ steps.set-env.outputs.environment }} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Determine Environment | ||
id: set-env | ||
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: | ||
FIREBASE_PROJECT_ID: ${{ vars.FIREBASE_PROJECT_ID }} | ||
steps: | ||
- run: | | ||
echo "Injecting Environment Variables In Deployment Workflow: ${{ vars.FIREBASE_PROJECT_ID }}" | ||
buildandtest: | ||
name: Build and Test | ||
needs: determineenvironment | ||
uses: ./.github/workflows/build-and-test.yml | ||
permissions: | ||
contents: read | ||
checks: write | ||
secrets: inherit | ||
deployfirebase: | ||
name: Deploy Firebase Project | ||
needs: [buildandtest, determineenvironment, vars] | ||
uses: StanfordBDHG/.github/.github/workflows/firebase-deploy.yml@v2 | ||
permissions: | ||
contents: read | ||
with: | ||
customcommand: "npm run install" | ||
environment: ${{ needs.determineenvironment.outputs.environment }} | ||
arguments: '--project ${{ needs.vars.outputs.FIREBASE_PROJECT_ID }}' | ||
secrets: | ||
GOOGLE_APPLICATION_CREDENTIALS_BASE64: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS_BASE64 }} |
This file was deleted.
Oops, something went wrong.
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,18 @@ | ||
# | ||
# This source file is part of the Stanford Biodesign Digital Health ENGAGE-HF open-source project | ||
# | ||
# SPDX-FileCopyrightText: 2023 Stanford University and the project authors (see CONTRIBUTORS.md) | ||
# | ||
# SPDX-License-Identifier: MIT | ||
# | ||
|
||
name: Monthly Markdown Link Check | ||
|
||
on: | ||
schedule: | ||
- cron: '0 8 1 * *' | ||
|
||
jobs: | ||
markdown_link_check: | ||
name: Markdown Link Check | ||
uses: StanfordBDHG/.github/.github/workflows/markdown-link-check.yml@v2 |
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 file was deleted.
Oops, something went wrong.
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