Code Monkey home page Code Monkey logo

fhir-ig-action's Introduction

fhir-ig-action

GitHub release (latest SemVer) GitHub Workflow Status GitHub last commit GitHub CHANGELOG

This action provides the following functionality for GitHub Actions users:

  • Build a FHIR IG with the IG Publisher
  • Use the set versions of the IG Publisher and SUSHI (if needed)
  • Matches IG Publisher and Sushi errors in GitHub

Usage

The action can be configured with the following inputs:

ig-publisher
The version of the IG Publisher to use. The value can be a full version (i.e. x.y.z) or the keyword 'latest'. The default value is 'latest'.
sushi
The version of SUSHI to use. The value can be a partial or full version (i.e. x, x.y or x.y.z), the keyword 'latest', or the keyword 'false' to disable SUSHI. The default value is 'false'.

Examples

The following example will build an IG with the latest version of the IG Publisher, without SUSHI. The ig.ini file is expected in the top directory of the project.

name: Build the IG
on: [push, pull_request]
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: qligier/[email protected]

Another example for a SUSHI IG, with specific versions:

name: Build the IG
on: [push, pull_request]
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: qligier/[email protected]
        with:
          ig-publisher: "1.3.5"
          sushi: "2.10"

To build an IG in another directory, you should use the working-directory configuration:

name: Build the IG
on: [push, pull_request]
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: qligier/[email protected]
        working-directory: ./folder/my-ig # This will use ./folder/my-ig/ig.ini

License

This project is released under the MIT License.

Development

Issues and pull requests are very welcome ๐Ÿ’™

Code contributions must pass the code checks: shfmt, ShellCheck and Prettier. See the GitHub Action file for details.

Alt

fhir-ig-action's People

Contributors

dependabot[bot] avatar qligier avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

healthedata1

fhir-ig-action's Issues

building an ig is giving me a heap space error.

Building an ig is giving me a heap space error. In my local build I allocate 4G:

java -Xmx4G -jar ${path} -ig ig.ini -tx $NA

Can you add a parameter to adjust the to increase the heap maximum size or hardcode it. I am not sure if you need paid accounts or not to do this.

From Github

Supported runners and hardware resources
Note: GitHub also offers larger runners, which are available in larger configurations, with autoscaling enabled by default and optional dedicated IP addresses. For more information, see "About larger runners."

Hardware specification for Windows and Linux virtual machines:
2-core CPU (x86_64)
7 GB of RAM
14 GB of SSD space

Hardware specification for macOS virtual machines:
3-core CPU (x86_64)
14 GB of RAM
14 GB of SSD space

Hardware specification for macOS XL virtual machines:
12-core CPU (x86_64)
30 GB of RAM
14 GB of SSD space

Why are the FHIR R4 examples being downloaded to the cache?

I see this in the build logs near the end of the process:

Generate Summaries                                                               (03:09.328)
Generating Summary Outputs                                                       (03:09.329)
Installing hl7.fhir.r4.examples#4.0.1 to the package cache
  Fetching:
Installing hl7.fhir.r4.examples#4.0.1 done.

Why are FHIR R4 examples being downloaded to the cache, and why at the end and not the beginning like the rest of the packages?

in my local build, there is this line:

Ignore Dependency on Core FHIR hl7.fhir.r4.examples#4.0.1, from package 'hl7.fhir.uv.sdc#3.0.0' (00:07.822)

I could not find a parameter that controls this

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.