Clinician messages #612
Workflow file for this run
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 source file is part of the ENGAGE-HF project based on the Stanford Spezi Template Application project | |
# | |
# SPDX-FileCopyrightText: 2023 Stanford University | |
# | |
# SPDX-License-Identifier: MIT | |
# | |
name: Lint, Build and Test | |
on: [pull_request] | |
jobs: | |
deploy: | |
name: Lint, Build and Test Functions | |
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: Lint | |
run: npm run lint:strict | |
- name: Test | |
id: test | |
run: npm run test:ci | |
- name: Regenerate Test Results | |
id: test-regenerate | |
run: npm --prefix functions run test:regenerate | |
if: ${{ failure() && steps.test.conclusion == 'failure' }} | |
- name: Archive Regenerated Test Results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: test results | |
path: functions/src/tests/resources | |
if: ${{ failure() && steps.test-regenerate.conclusion == 'success' }} | |
permissions: | |
contents: read |