Launched: Validate Project with Validation API and GitHub Action

Introduction

The Validation API allows you to validate your project outside of Holistics, enabling smooth integration with CI/CD workflows. This feature is particularly useful in scenarios such as:

  • Validating updates before merging a pull request into the master branch by incorporating the Validation API within the CI/CD pipeline.
  • Validating changes immediately after updates are pushed to the master branch.
  • Running validations prior to using the Publish API to ensure a successful publish.

CI/CD Workflow Integration

In addition to the Validation API, we offer a GitHub Action that simplifies the integration of the validation process into your workflow.

Here is a demo of Validation with Validation API and GitHub Action & run Validation before Auto Publish

name: Validate and Publish AML Project

on:
  push:
    branches:
      - '**'

jobs:
  validate-project:
    runs-on: ubuntu-latest

    env:
      HOLISTICS_API_KEY: ${{ secrets.HOLISTICS_API_KEY }}
      HOLISTICS_HOST: "https://secure.holistics.io"

    steps:
      - name: Validate Project
        uses: holistics/[email protected]

  publish-aml:
    runs-on: ubuntu-latest

    needs: validate-project
    if: github.ref == 'refs/heads/master'

    env:
      HOLISTICS_API_KEY: ${{ secrets.HOLISTICS_API_KEY }}
      HOLISTICS_HOST: "https://secure.holistics.io"

    steps:
      - name: Publish AML
        uses: holistics/[email protected]

We believe this update will enhance your workflow with Holistics. As always, we appreciate your feedback and support!

For more information, please refer to our public doc here: Validate Projects (with Validation API) | Holistics Docs (4.0)

4 Likes