Skip to content

Latest commit

 

History

History
32 lines (27 loc) · 2.94 KB

CI_CD.md

File metadata and controls

32 lines (27 loc) · 2.94 KB

GitHub Workflows description

JSON-LD publication includes the following repos:

  1. spec-jsonld - contains transformation code
  2. spec-JSONschema - as a git module for spec-jsonld
  3. vocabulary-outputs - generates HTML presentation of JSON-LD vocabularies

Proposed workflow for BSP vocabulary maintance:

  1. A new version of JSON Schema is published on spec-JSONschema.
  2. A maintainer of spec-jsonld is notified about the new BSP version.
  3. A maintainer of spec-jsonld updates spec-JSONschema git module reference and raises a PR.
  1. A GitHub workflow is triggered on the PR and a new version of transformation code is buit,
  2. The GitHub workflow runs transformation code runs using the new version of JSON Schema, JSON-LD files are produced and added to the PR for review.
  3. Tests are executed to confirm the JSON-LD files are valid from structure(json schema) and data(relationships between resources) perspectives.
  4. The fixes and adjustments are applied if needed until JSON-LD files are correct and diff report is produced.
  5. The PR is approved, merged and a new release is created with JSON-LD vocaularies as release artifacts.
  1. A repository dispatch request is sent to vocabulary-outputs and triggers preview.yml workflow.
  2. The new JSON-LD vocabularies are downloaded as latest artifacts from spec-jsonld.
  3. The md and data files are generated from the new version JSON-LD vocabulary.
  4. A PR is raised and deployed to a test endpoint for review to https://test.uncefact.org/
  5. A broken link check is ran against the test endpoint.
  6. The PR is approved and merged and the release.yml is manually triggered to update https://vocabulary.uncefact.org/
  7. A broken link check is ran against the production endpoint.

Release artifacts:

  1. spec-jsonld - the Java application with transformation code, JSON-LD vocabulary and context files, diff report
  2. vocabulary-outputs - broken link check report, diff report for vocabularies versions