Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
Merge branch 'medplum:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
dvidsilva authored Feb 23, 2024
2 parents bf27db1 + ffd7ce1 commit 4ed21d6
Show file tree
Hide file tree
Showing 399 changed files with 19,402 additions and 9,666 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
pull-requests: write
strategy:
matrix:
node-version: [18, 20]
pg-version: [12, 14]
env:
NODE_VERSION: ${{ matrix.node-version }}
PG_VERSION: ${{ matrix.pg-version }}
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: 'medplum'
TURBO_REMOTE_ONLY: true
SECRETS_TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
services:
postgres:
image: postgres:${{ matrix.pg-version }}
Expand All @@ -40,15 +40,15 @@ jobs:
ports:
- 5432/tcp
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
- name: Cache node modules
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
Expand All @@ -58,6 +58,16 @@ jobs:
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Setup TurboRepo
# Conditionally setup turborepo
# In the past, turborepo would silently ignore empty environment variables
# This is no longer the case, so we need to check if the secret is set
# You cannot use `if: ${{ secrets.TURBO_TOKEN != '' }}` because secrets are not available in the `if` condition
if: ${{ env.SECRETS_TURBO_TOKEN != '' }}
run: |
echo "TURBO_TOKEN=${{ secrets.TURBO_TOKEN }}" >> $GITHUB_ENV
echo "TURBO_TEAM=${{ secrets.TURBO_TEAM }}" >> $GITHUB_ENV
echo "TURBO_REMOTE_ONLY=${{ secrets.TURBO_REMOTE_ONLY }}" >> $GITHUB_ENV
- name: Build Project
run: ./scripts/build.sh
env:
Expand All @@ -72,7 +82,8 @@ jobs:
POSTGRES_HOST: localhost
POSTGRES_PORT: ${{ job.services.postgres.ports[5432] }}
- name: Upload code coverage
uses: actions/upload-artifact@v3
if: ${{ matrix.node-version == 20 && matrix.pg-version == 14 }}
uses: actions/upload-artifact@v4
with:
name: medplum-code-coverage
path: coverage/lcov.info
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coveralls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
if: github.event.workflow_run.conclusion == 'success'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
repository: ${{ github.event.workflow_run.head_repository.full_name }}
ref: ${{ github.event.workflow_run.head_branch }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ jobs:
env:
NODE_VERSION: '20'
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: 'medplum'
TURBO_REMOTE_ONLY: true
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
TURBO_REMOTE_ONLY: ${{ secrets.TURBO_REMOTE_ONLY }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- name: Cache node modules
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/madge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ jobs:
outputs:
madge_check_errs: ${{ steps.madge.outputs.madge_check_errs }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- name: Cache node modules
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ jobs:
name: Prepare release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.MEDPLUM_BOT_GITHUB_ACCESS_TOKEN }}
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/prettier-fmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,20 @@ jobs:
prettier-fmt:
name: prettier
runs-on: ubuntu-latest
permissions:
pull-requests: write
outputs:
prettier_fmt_errs: ${{ steps.fmt.outputs.prettier_fmt_errs }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- name: Cache node modules
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
Expand Down Expand Up @@ -97,5 +99,5 @@ jobs:
echo "See: https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode"
echo ""
echo "https://github.com/medplum/medplum/commits/${{github.sha}}"
exit 1
26 changes: 13 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,24 @@ jobs:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: 'medplum'
TURBO_REMOTE_ONLY: true
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
TURBO_REMOTE_ONLY: ${{ secrets.TURBO_REMOTE_ONLY }}
permissions:
actions: read
contents: write
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'

- name: Cache node modules
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
Expand Down Expand Up @@ -96,14 +96,14 @@ jobs:
env:
NODE_VERSION: '20'
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: 'medplum'
TURBO_REMOTE_ONLY: true
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
TURBO_REMOTE_ONLY: ${{ secrets.TURBO_REMOTE_ONLY }}
permissions:
actions: read
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install NSIS
run: choco install nsis
Expand All @@ -118,7 +118,7 @@ jobs:
java-version: '17'

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
Expand Down Expand Up @@ -171,17 +171,17 @@ jobs:
env:
NODE_VERSION: '20'
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: 'medplum'
TURBO_REMOTE_ONLY: true
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
TURBO_REMOTE_ONLY: ${{ secrets.TURBO_REMOTE_ONLY }}
permissions:
actions: read
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
if: github.event.workflow_run.conclusion == 'success'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
repository: ${{ github.event.workflow_run.head_repository.full_name }}
ref: ${{ github.event.workflow_run.head_branch }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ jobs:
env:
NODE_VERSION: '20'
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: 'medplum'
TURBO_REMOTE_ONLY: true
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
TURBO_REMOTE_ONLY: ${{ secrets.TURBO_REMOTE_ONLY }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- name: Cache node modules
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/upgrade-dependencies.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
name: Upgrade dependencies

on: workflow_dispatch
on:
workflow_dispatch:
schedule:
# Every Monday at 9:00 AM UTC
# Every Monday at 1:00 AM PST (2:00 AM PDT)
- cron: '0 9 * * 1'

jobs:
upgrade-dependencies:
name: Upgrade dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.MEDPLUM_BOT_GITHUB_ACCESS_TOKEN }}
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
Expand Down
40 changes: 20 additions & 20 deletions examples/foomedical/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "foomedical",
"version": "3.0.2",
"version": "3.0.4",
"type": "module",
"scripts": {
"build": "tsc && vite build",
Expand All @@ -25,21 +25,21 @@
"@babel/preset-env": "7.23.9",
"@babel/preset-react": "7.23.3",
"@babel/preset-typescript": "7.23.3",
"@mantine/core": "7.5.0",
"@mantine/hooks": "7.5.0",
"@mantine/notifications": "7.5.0",
"@medplum/core": "3.0.2",
"@medplum/eslint-config": "3.0.2",
"@medplum/fhirtypes": "3.0.2",
"@medplum/mock": "3.0.2",
"@medplum/react": "3.0.2",
"@tabler/icons-react": "2.46.0",
"@testing-library/jest-dom": "6.3.0",
"@testing-library/react": "14.1.2",
"@types/jest": "29.5.11",
"@types/node": "20.11.8",
"@types/react": "18.2.48",
"@types/react-dom": "18.2.18",
"@mantine/core": "7.5.3",
"@mantine/hooks": "7.5.3",
"@mantine/notifications": "7.5.3",
"@medplum/core": "3.0.4",
"@medplum/eslint-config": "3.0.4",
"@medplum/fhirtypes": "3.0.4",
"@medplum/mock": "3.0.4",
"@medplum/react": "3.0.4",
"@tabler/icons-react": "2.47.0",
"@testing-library/jest-dom": "6.4.2",
"@testing-library/react": "14.2.1",
"@types/jest": "29.5.12",
"@types/node": "20.11.19",
"@types/react": "18.2.56",
"@types/react-dom": "18.2.19",
"@vitejs/plugin-react": "4.2.1",
"babel-jest": "29.7.0",
"c8": "9.1.0",
Expand All @@ -48,13 +48,13 @@
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"jest-transform-stub": "2.0.0",
"postcss": "8.4.33",
"postcss-preset-mantine": "1.12.3",
"postcss": "8.4.35",
"postcss-preset-mantine": "1.13.0",
"react": "18.2.0",
"react-chartjs-2": "5.2.0",
"react-dom": "18.2.0",
"react-router-dom": "6.21.3",
"react-router-dom": "6.22.1",
"typescript": "5.3.3",
"vite": "5.0.12"
"vite": "5.1.3"
}
}
Loading

0 comments on commit 4ed21d6

Please sign in to comment.