Skip to content

feat: v4 0 0

feat: v4 0 0 #7

Workflow file for this run

# MIT License
#
# Copyright (c) 2026 Shane
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
name: Test
on:
workflow_dispatch:
workflow_call:
pull_request:
branches:
- "**"
types:
- opened
- reopened
- ready_for_review
- synchronize
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
Build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [24.x, 'lts/*', 'latest']
steps:
- uses: actions/checkout@v6
- name: Generate lockfile
run: npm install --package-lock-only --ignore-scripts --legacy-peer-deps
- name: Test with Node ${{matrix.node-version}}
uses: actions/setup-node@v6
with:
node-version: ${{matrix.node-version}}
cache: 'npm'
- name: Install dependencies
run: npm ci --ignore-scripts --legacy-peer-deps
- name: Run Tests
run: |
npm test
- name: Run Build
run: |
npm run build
- name: Upload build artifact
if: matrix.node-version == 'lts/*'
uses: actions/upload-artifact@v7
with:
name: cache
path: |
package.json
README.md
LICENSE
packages/node-hl7-client/package.json
packages/node-hl7-client/README.md
packages/node-hl7-client/LICENSE
packages/node-hl7-client/lib
packages/node-hl7-server/package.json
packages/node-hl7-server/README.md
packages/node-hl7-server/LICENSE
packages/node-hl7-server/lib