pldn / LDWizard

🧙 LDWizard: A generic framework for simplifying the creation of linked data. Supported by the PLDN community.
European Union Public License 1.2
13 stars 7 forks source link

Add GitHub actions workflow to test building the LDWizard #98

Closed vemonet closed 8 months ago

vemonet commented 1 year ago

Hi, I created a GitHub Actions to test if the LDWizard successfully builds using the default config (yarn build) with node 14, 16, 18 and it tests building the docker image

It was requested by @GerwinBosch in https://github.com/pldn/LDWizard/issues/38, and it is really useful to check if the LDWizard properly builds on various version of NodeJS after making changes.

You can see a successful run here: https://github.com/vemonet/LDWizard/actions/runs/3932925950

I put the following triggers:

I added a badge at the top of README.md and CONTRIBUTING.md. Not sure if you want to have it in the README, personnally I find it really convenient to have it there because it helps to quickly spot when the workflow has failed

And I changed the default webpack/runtimeConfig.ts to use a custom config with column refinement, it enables to test more features of the LDWizard when in development and tests

If you are interested we could also setup a workflow to automatically publish to npm when a release is created on GitHub. It will require to add a NPM auth token as secret (ideally one that only has access to the ldwizard package for security)

vemonet commented 8 months ago

No problem, I rebased the branch on main