-
Notifications
You must be signed in to change notification settings - Fork 5
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
Showing
23 changed files
with
292 additions
and
67 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/__tests__/*.test.ts | ||
/bin/**/* | ||
/__tests__/* | ||
/bin/**/* | ||
vitest.config.ts |
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,39 @@ | ||
--- | ||
name: Bug Report | ||
about: Report a bug | ||
labels: bug | ||
--- | ||
|
||
## Search terms | ||
|
||
<!-- Include keywords that might help others with the same problem find this issue --> | ||
|
||
## Environment | ||
|
||
- HL7 Client version: | ||
- TypeScript version: | ||
- Node.js version: | ||
- OS: | ||
|
||
Questions: | ||
|
||
- Are you using the Node [HL7 Server](https://github.com/Bugs5382/node-hl7-server) package as your HL7 Server to connect to or a 3rd party system? | ||
|
||
## Expected Behavior | ||
|
||
<!-- How did you expect HL7 Client to work? --> | ||
|
||
## Actual Behavior | ||
|
||
<!-- What does HL7 Client fail to do? --> | ||
|
||
## Steps to reproduce the bug | ||
|
||
<!-- | ||
Please provide the code causing the issue, as comprehensively as possible. | ||
If the issue is related to a specific HL7 message, please include the actual | ||
message you sent. Ensure that any sensitive information is scrubbed and sanitized before sharing. | ||
--> | ||
|
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,11 @@ | ||
--- | ||
name: Question | ||
about: Ask a question | ||
labels: question | ||
--- | ||
|
||
## Search terms | ||
|
||
<!-- Include keywords that might help others with the same question find this issue --> | ||
|
||
## Question |
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,52 @@ | ||
name: Dependabot Auto-Merge | ||
|
||
on: | ||
pull_request_target: | ||
types: [review_requested] | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
packages: read | ||
|
||
jobs: | ||
Dependabot: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.actor == 'dependabot[bot]' }} | ||
steps: | ||
- name: Dependabot metadata | ||
id: metadata | ||
uses: dependabot/[email protected] | ||
with: | ||
github-token: "${{ secrets.GH_TOKEN }}" | ||
skip-commit-verification: true | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Approve PR, if not already approved | ||
run: | | ||
gh pr checkout "$PR_URL" | ||
if [ "$(gh pr status --json reviewDecision -q .currentBranch.reviewDecision)" != "APPROVED" ]; then | ||
gh pr review --approve "$PR_URL" | ||
else | ||
echo "PR Already Approved."; | ||
fi | ||
env: | ||
PR_URL: ${{ github.event.pull_request.html_url }} | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
- name: Run unit tests | ||
run: | | ||
npm test | ||
- name: Aggregate Dependabot PRs | ||
id: aggregate_prs | ||
run: | | ||
PR_URL=$(gh pr list --json state:open author:dependabot[bot] base:$PR_BASE_BRANCH -q '.[].url' | jq -r 'join(" ")') | ||
echo "::set-output name=pr_url::$PR_URL" | ||
env: | ||
PR_BASE_BRANCH: develop | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
- name: Merge aggregated PRs | ||
if: steps.aggregate_prs.outputs.pr_url != '' | ||
run: | | ||
gh pr merge --auto --merge ${{ steps.aggregate_prs.outputs.pr_url }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} |
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 |
---|---|---|
@@ -1,16 +1,17 @@ | ||
name: GitHub CI | ||
name: "Deploy: CI" | ||
on: | ||
push: | ||
branches: [ 'main', 'develop' ] | ||
|
||
permissions: | ||
contents: write | ||
issues: write | ||
pull-requests: write | ||
id-token: write | ||
|
||
jobs: | ||
Test: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
issues: write | ||
pull-requests: write | ||
id-token: write | ||
strategy: | ||
matrix: | ||
node-version: [ 20.x, 'lts/*' ] | ||
|
@@ -31,11 +32,6 @@ jobs: | |
Release: | ||
runs-on: ubuntu-latest | ||
needs: [ 'Test' ] | ||
permissions: | ||
contents: write | ||
issues: write | ||
pull-requests: write | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
|
@@ -55,4 +51,24 @@ jobs: | |
run: npm run semantic-release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
Merge: | ||
runs-on: ubuntu-latest | ||
needs: [ 'Release' ] | ||
if: github.ref == 'refs/heads/main' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
ref: develop | ||
- name: Configure Git | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Bugs5382" | ||
- name: Merge main into develop | ||
run: | | ||
git remote set-url origin https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }} | ||
git fetch origin | ||
git checkout develop | ||
git merge origin/main -m "chore: merge main into develop [ci skip]" | ||
git push origin develop |
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,28 @@ | ||
name: "Deploy: Typedoc to GitHub Pages" | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
Build-and-Deploy-Docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20' | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Generate Typedoc documentation | ||
run: npm run typedoc | ||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v4 | ||
with: | ||
github_token: ${{ secrets.GH_TOKEN }} | ||
publish_dir: ./docs | ||
user_name: 'github-actions[bot]' | ||
user_email: 'github-actions[bot]@users.noreply.github.com' |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: "Lint PR" | ||
name: "PR: Lint Title" | ||
|
||
on: | ||
pull_request_target: | ||
|
@@ -16,14 +16,14 @@ concurrency: | |
|
||
|
||
jobs: | ||
validate: | ||
Validate: | ||
permissions: | ||
contents: read | ||
pull-requests: read | ||
name: Validate PR Title | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: thehanimo/pr-title-checker@0cf5902181e78341bb97bb06646396e5bd354b3f # v1.4.0 | ||
- uses: thehanimo/[email protected].2 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
configuration_path: ".github/pr-title-checker-config.json" |
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,34 @@ | ||
name: "PR: Unit Tests" | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- develop | ||
types: | ||
- opened | ||
- synchronize | ||
|
||
jobs: | ||
Test: | ||
name: Run Unit tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [ 20.x, 'lts/*' ] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Install Dependencies | ||
run: npm install --ignore-scripts | ||
- name: Run Lint Fix | ||
run: npm run lint:fix | ||
- name: Run Unit Tests | ||
run: npm run test | ||
- name: Check test results | ||
run: exit ${{ steps.Test.outputs.test_result }} | ||
id: check_test_result |
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 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 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
Oops, something went wrong.